SENDMAIL Send an e-mail message |
Top Previous Next |
This command sends an e-mail message previously created with the CREATEMAIL command via a SMTP e-mail server. All of the arguments to this command are required, however [ to name ] may be an empty string.
The same message is sent each time SENDMAIL is called unless CREATEMAIL is called again to change the message.
Consider the following example where an e-mail message is created and then sent.
;; create the message SET from = "Serengeti Sales" SET email = "[email protected]" SET subj = "Thanks for your order!" SET body = "We appreciate your business." SET attach = "" CREATEMAIL from email subj body attach ;; send the message SENDMAIL "120.33.13.10" "Joe Blow" "[email protected]"
Consider the following example where authentication is required on the SMTP server.
SET server = "smtp.mail.server" SET to = "Ray Johnson" SET email = "[email protected]" SENDMAIL server to email /user=smtpid /pw=smtppw
Related Command(s): CREATEMAIL, GETMAIL
|