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 connectionid
STRING ARRAY receivers

Array of email addresses of the receivers

STRING sender

Email address of the sender

RECORD ARRAY mimeheaders

Headers to send with the message

RECORD toppart

Top-level part of the MIME message to send

Return value

RECORD

A record describing any errors

failures

A record array of (STRING receiver, INTEGER code, STRING text) detailing any partial delivery failures

message

Message sent back by the SMTP server after the DATA command (error upon failure, acceptance message if success)

smtpserverip

IP address of SMTP server

success

If true, at least one receiver was accepted by the SMTP server