Syntax
HRESULT Net_SendMailEx(
[in] long NetCard,
[in] BSTR SenderId,
[in] BSTR ToIds,
[in] BSTR CcIds,
[in] BSTR BccIds,
[in] BSTR ReturnPathId,
[in] BSTR ReturnRcpId,
[in] BSTR MsgComment,
[in] BSTR Subject,
[in] long IsExpression,
[in] BSTR MessageBody,
[out, retval] long *Result
);
Parameters
NetCard
[in] The ID of the Network port to send the mail through
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.
ReturnPathId
[in] Email address to send server errors and responses to. This parameter is normally set to the
same address as the SenderId.
ReturnRcpId
[in] Email address to send return receipt requests to. Pass an empty string if a return receipt is
not needed.
MsgComment
[in] Sets the comment field for the email.
Subject
[in] Subject line for the email.
IsExpression
[in] Pass a 1 if the MessageBody parameter contains an expression, or 0 if the body is a
simple string.
MessageBody
[in] Body text of the email. Can be an expression.
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.
10