Url
[in] The server address to post to, e.g.
IsExpression
[in] Flag indicating whether
PostData
contains simple text or an expression. Set to 1, if
PostData
is an expression; otherwise, set to 0.
PostData
[in] A string or expression that represents the data to send to the server.
Timeout
[in] The number of milliseconds to wait for a response from the web server before the call
aborts.
RetData
[out, retval] The response send back from the server.
Net_SendMail( SenderId, ToIds, CcIds, BccIds, Subject, MessageBody )
Sends an email to the specified recipients.
Syntax
HRESULT Net_SendMail(
[in] BSTR SenderId,
[in] BSTR ToIds,
[in] BSTR CcIds,
[in] BSTR BccIds,
[in] BSTR Subject,
[in] BSTR MessageBody,
[out, retval] long *Result
);
Parameters
SenderId
[in] Sender’s email address, e.g. [email protected]
ToIds
[in] Email addresses to be included in the To: line of the email. Separate each email address
with a semicolon.
CcIds
[in] Email addresses to include on the Cc: line of the email.
BccIds
[in] Email addresses placed in the Bcc: line of the email.
Subject
[in] Subject line for the email
MessageBody
[in] Body text of the email
Result
[out, retval] Returned as 0 if no error occurred; otherwise the return value is the error returned
from the SMTP server.
Remarks
The WACI does not retry sending when it fails to send the email. A return code of 250 normally indicates that
the email was sent successfully. Other error codes normally indicate a failure.
Net_SendMailEx ( NetCard, SenderId, ToIds, CcIds, BccIds,
ReturnPathId,
ReturnRcpId, MsgComment, Subject, IsExpression, MessageBody )
Sends an email to the specified recipients. This function is an expanded form of Net_SendMail.
10