You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

Socket function used to send SMTP mail from an OpenInsight workstation.  Allows for the use of Multi-part MIME when sending email.

Syntax

retval = SMTPMAIL(html_filename, mailservername, sendername, recipient, subject, body, cc, bcc, username, password)

Parameters

ParametersDescription

html_filename

The name of the file to send.

mailservername

The IP address of the mailserver.

sendername

The email address of the sender of the email.

recipient

The email address of the receiver of the email.

subject

The subject of the mail message.

body

The body of the mail message.  This is text that is sent if the file to send is not able to be sent.

cc

Additional recipients of the mail message.  Multiple email addresses can be delimited by either semicolons (;) or value marks (@vm).

bcc

Additional recipients of the mail message.  These recipients are unknown to all other recipients. Multiple email addresses can be delimited by either semicolons (;) or value marks (@vm).

username

The username of the SMTP account.

password

The password of the SMTP account.

Remark

This function sends a Multipart Mime email (stored in HTML form) via a SMTP server.

See also

Socket Functions

Example


Declare Function SMTPMAIL, Msg

html_document = "\html\my_html_file.htm"

mailservername = "my.mailserver.net"

Sendername = "info@revelation.com"

Recipient  = "someone@somewhere.com"

Subject = "An Example of the OpenInsight SMTPMAIL Function"

Body = ."A line of text."

Username = ""

Password = ""




retval = smtpmail(html_document, mailservername, sendername, recipient, subject, body, username, password)

Convert @vm To '-' In retval

Convert @fm To '|' In retval

x = Msg(@Window, 'Retval was |':retval)


  • No labels