SendSMTPMessage (open)
This function will send a message to the SMTP server
Syntax
LOADLIB "wh::internet/smtp.whlib";
RECORD FUNCTION SendSMTPMessage(INTEGER connectionid, STRING ARRAY receivers, STRING sender, RECORD ARRAY mimeheaders, RECORD toppart)Parameters
INTEGER connectionidSTRING ARRAY receiversArray of email addresses of the receivers
STRING senderEmail address of the sender
RECORD ARRAY mimeheadersHeaders to send with the message
RECORD toppartTop-level part of the MIME message to send
Return value
RECORDA record describing any errors
failuresA record array of (STRING receiver, INTEGER code, STRING text) detailing any partial delivery failures
messageMessage sent back by the SMTP server after the DATA command (error upon failure, acceptance message if success)
smtpserveripIP address of SMTP server
successIf true, at least one receiver was accepted by the SMTP server