<< Click to Display Table of Contents >> Navigation: Reference > SmtpMail > SmtpUsername Property |
SmtpUsername property specifies username (login or account name) on the outgoing mail server.
Syntax
[Visual Basic]
objSmtpMail.SmtpUsername = "smithj"
[VBScript]
objSmtpMail.SmtpUsername = "smithj"
[C#]
objSmtpMail.SmtpUsername = "smithj";
[C++]
HRESULT get_SmtpUsername(BSTR*);
HRESULT put_SmtpUsername(BSTR);
spSmtpMail->PutSmtpUsername("smithj");
Remarks
SmtpUsername property contains empty string by default. This property should be set to an empty string if your outgoing mail server doesn't require authentication.