Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FieldNameDescription
<1>UnusedLeave blank.
<2>UnusedLeave blank.
<3>Server PortThe SMTP service port. Most servers use 25 for non-encrypted use or 587 for TLS encryption.
<4>Server AddressThe SMTP server name or IP address. (For example: mail.mydomain.com)
<5>AuthenticateSet this to 1. Nearly all email service provider require authentication.
<6>UsernameYour email account's username
<7>PasswordYour email account's password
<8>Use TLS

Set this field to 1 or "TLS" if you need the email transported the TLS security protocol. Set it to 0 or leave it blank if encrypted security is not desired (though this is not recommended).

Info

As of 2.2, SSL is no longer supported. Email service providers that support SSL should also support TLS, and TLS is considered more secure. Many SMTP APIs have stopped supporting SSL for this reason.

Info

As of 3.0.3, you can set this field to "TLS11", "TLS12", or "TLS13" to force the security protocol to TLS 1.1, TLS 1.2, or TLS 1.3. Setting this field to 1 always uses TLS 1.2.


Example

Code Block
$insert SRPMAIL_INSERTS 

Config = "" 
Config<3> = 587
Config<4> = "mymail.somedomain.com" 
Config<5> = 1 
Config<6> = "myusername" 
Config<7> = "password" 
Config<8> = "TLS"
     
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)

...