Page History
Sends an email using the SMTP protocol.
Syntax
Code Block |
---|
Result = SRP_Send_Mail(Message, Config) |
Returns
If the email sends successfully, then 1 is return. If the email cannot be sent, then a string describing the error is returned.
Parameters
Parameter | Description |
---|---|
Message | The email information |
Config | The settings for how the email will be sent |
Remarks
The first parameter describes the contents and destination of the email. It has the following structure:
...
If you set the Send Using field to SendUsing_Port$, then set the SMTP Server field to an IP address rather than a server name for better results.
Example
Code Block |
---|
$insert SRPMAIL_INSERTS Config = "" Config<1> = SendUsing_Port$ Config<3> = 25 Config<4> = "mymail.somedomain.com" Config<5> = 1 Config<6> = "myusername" Config<7> = "password" Config<8> = 0 Message = "" Message<1> = "Subject Line" Message<2> = "myemail@somedomain.com" Message<3> = "myfriend@somedomain.com" Message<4> = "" Message<5> = "" Message<6> = "" Message<7> = "TEXT" Message<8> = "Hello World!" Message<9> = "" Message<10> = SRPMail_Importance_Normal$ rv = SRP_Send_Mail(Message, Config) |