Socket function used to send SMTP mail from an OpenInsight workstation. Allows for the use of Multi-part MIME when sending email.
retval = SMTPMAIL(html_filename, mailservername, sendername, recipient, subject, body, cc, bcc, username, password)
The name of the file to send.
The IP address of the mailserver.
The email address of the sender of the email.
The email address of the receiver of the email.
The subject of the mail message.
The body of the mail message. This is text that is sent if the file to send is not able to be sent.
Additional recipients of the mail message. Multiple email addresses can be delimited by either semicolons (;) or value marks (@vm).
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).
The username of the SMTP account.
The password of the SMTP account.
This function sends a Multipart Mime email (stored in HTML form) via a SMTP server.
Declare Function SMTPMAIL, Msg html_document = "\html\my_html_file.htm" mailservername = "my.mailserver.net" Sendername = "email@example.com" Recipient = "firstname.lastname@example.org" 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)