SmtpAddress property

_Account.SmtpAddress property

Returns a String (string in C#) representing the Simple Mail Transfer Protocol (SMTP) address for the Account. Read-only.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

[DispIdAttribute()]
string SmtpAddress { get; }

Property value

Type: System.String

The purpose of SmtpAddress and _Account.UserName is to provide an account-based context to determine identity.

If the account does not have an SMTP address, SmtpAddress returns an empty string.

Show:
© 2016 Microsoft