CrestronMailFunctionsSendMail(String, String, String, String, String, String, String, String) Method |
Send an email message (without attachments) using SMTP protocol.
Namespace: Crestron.SimplSharpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static CrestronMailFunctionsSendMailErrorCodes SendMail(
string Server,
string UserLogonName,
string UserLogonPassword,
string From,
string To,
string CC,
string Subject,
string Message
)
Parameters
- Server String
- Required: Specifies address of the mail server.
- UserLogonName String
- Optional: User logon name.
- UserLogonPassword String
- Optional: User password.
- From String
- Required: Sender (Only one address).
- To String
- Required: Recipients
- CC String
- Optional: Other Recipients.
- Subject String
- Optional: Subject of Message.
- Message String
- Optional: Body of message.
Return Value
CrestronMailFunctionsSendMailErrorCodes0 if successful. Otherwise, Email Return Error Code is returned.
Negative return error codes indicate that no part of the email was sent.
Positive return error codes indicate a failure, but the email was still sent.
In the event of more than one failure, the return error code of the first
failure is returned.
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also