SMTP_SEND
Sends a plain text message and returns its Message-ID.
All recipients together, to, cc and bcc, may be at most 20, and the message at most 64 KiB. One player may send 10 messages in a minute. The server can change these limits.
Parameters and results
serverSTRUCT c0de_net/mail/SMTP_SERVER: the servertoSTRING or ARRAY STRING: the recipientssubjectSTRING: the subject (optional, default empty)textSTRING: the text (optional, default empty)ccARRAY STRING: recipients of copies (optional, default none)bccARRAY STRING: recipients of copies that the others don't see (optional, default none)reply_toSTRING: the address for answers (optional, default empty: the sender)- result
resultSTRING: the Message-ID
Example
c0de
CALL c0de_net/mail/SMTP_SEND
PARAMETER server smtp ;
PARAMETER to "alex@example.com" ;
PARAMETER subject "The farm" ;
PARAMETER text "The wheat is ready." ;