NOP Design Home Page
Documentation
TOC/Index
Search
Downloads



Sendmail

Sends an email

Sends an email to a specified user through SMTP. Under Unix, SIML connects to your local sendmail program to send email. Under Windows, SmartInterpreter connects to your SMTP server and sends the mail immediately. Performance will be slower under Windows because of the real-time nature of SMTP network connections. Syntax: SENDMAIL "Subject", "Mail Message text" TO "to@address.com" FROM "from@address.com"

Sample Source

MailMessage := "This is a sample email."
MailSubject := "Sample Mail"
MailTo      := "Scott@nopdesign.com"
MailFrom    := "Demo@vision.nopdesign.com"	
MsgSent := SENDMAIL MailSubject, MailMessage TO MailTo FROM MailFrom	
If MsgSent Then
   Say "Message Sent!"
Else
   Say "Could not send message!"
Endif

Sample Source

#Sends email with MIME types for HTML message bodies.
Sendmail "subject", "message" to "test@from.com" from "test@test.com" As "Html"

#Sends email with MIME settings for TEXT message bodies.
Sendmail "subject", "message" to "test@from.com" from "test@test.com" As "Text"
Sendmail "subject", "message" to "test@from.com" from "test@test.com"

Minimum version: 1.0