<< Click to Display Table of Contents >> Navigation: 3. Script Language > E-Mail Commands > E-Mail Commands |
MiniRobotLanguage (MRL)
SMA. - Send e-Mail
Send e-Mail
Intention
Send a e-Mail that was previously defined using the SMP.-command.
Wait until the e-mail was sent, or until he server returned an error.
Please see the SMP.-command for further information on how to define and send an e-mail. Example:
' Set E-Mail Configuration
SMP.?path\MailConfig.dat
' Send E-Mail and wait ...
SMA.
' Return the Answer of the Mail-Server from Stack
DBP.$$000
' End the script
ENR.
In case you need to send multiple Mails with attachments, this can take a while.
To prevent your Script from being blocked, you can use SMB. (Send Mail Background) in that case.
Syntax
SMA.[P1][|P2]
Parameter Explanation
P1 - (optional) If given, this value will overwrite the content of the "Send-To" Field.
P2 - (optional) Variable that will contain the answer of the Mail server.
Example
'***********************************
' SMA.-Sample
'***********************************
SMP.smtp-server=smtp.1und1.de
SMP.port=25
SMP.sender=you@yourdomain.com
SMP.receiver=yourfriend@hisdomain.com
SMP.subject=Invitation
SMP.text=Hallo friends,$crlf$this is going to be interesting!
SMP.auth=1
SMP.password=dsa8sdkj-*
' And let it go ...
SMA.
' Print if it was OK
DBP.$$000
ENR.
'***********************************
' SMA.-Sample
'***********************************
SMP.?path\MailConfig.dat
SMA.
DBP.$$000
ENR.
Remarks
-
Limitations:
When using PRR., the Parallelrobot will not inherit the Mailconfiguration from the Starting Robot. To send Mails in the Background, use SMB.
See also:
• ! Smart Package Robot 's Send-Mail
•