<< Click to Display Table of Contents >> Navigation: Reference > SmtpMail > SmtpServer Property |
SmtpServer property specifies name or IP address of the outgoing mail server (SMTP server) to use for sending e-mail messages.
Syntax
[Visual Basic]
objSmtpMail.SmtpServer = "mail.myisp.com"
[VBScript]
objSmtpMail.SmtpServer = "mail.myisp.com"
[C#]
objSmtpMail.SmtpServer = "mail.myisp.com";
[C++]
HRESULT get_SmtpServer(BSTR*);
HRESULT put_SmtpServer(BSTR);
spSmtpMail->PutSmtpServer("mail.myisp.com");
Remarks
SmtpServer property can be empty if messages are to be sent directly, without using outgoing mail server (AddEmail Enterprise version only). Please refer to Send Method, SendAsync Method and EnterpriseMail sample for details.