MAILSEND Example
Example 1:
|
Out |
INIT |
"www.outgoing.com" |
|
From |
INIT |
"Me@sunbelt-plb.com" |
|
To |
INIT |
"Someone@sunbelt-plb.com" |
|
Subject |
INIT |
"Test Mail Message" |
|
Body |
INIT |
"Hello World!" |
|
CC |
INIT |
"one@sunbelt-plb.com,two@sunbelt-plb.com" |
|
. |
|
|
|
|
MAILSEND |
Out,To,From,Subject,Body |
|
. |
|
|
|
|
MAILSEND |
Out,To,From,Subject,Body,*CC=CC |
|
. |
|
|
|
|
MAILSEND |
Out,To,From,Subject,Body,*CC=CC:
*ERROR=S$CMDLIN,*TIMEOUT=5 |
This example show three examples of the use of the MAILSEND instruction.
Example 2:
Example of '<e>' and '<f>' tag substitution for MAILSEND:
[Environment] ( SUNDM CFG file )
MAIL_UserX=myemail@some.net
MAIL_PassX=userpassword
Sample MAILSEND using <e> and <f> tag substitution:
MAILSEND "mail.server.com":
"yourmail@server.com":
"mymail@server.com":
"Testing SUNDM MAILSEND":
"<f>c:\temp\message.txt":
*user="<e>userX":
*Password="<e>passX":
*OPENSSL:
*PORT=465:
*SUNDM="192.168.0.100":
*Trace="mail.log"
In this example, the '<e>' tags are being used to retrieve the *USER and *PASSWORD parameters from
the SUNDM CFG file. The '<f>' tag is being used to retrieve the message body from the data file
named 'message.txt'.