SPGlobalAdmin.OutboundSmtpServer Property

NOTE: This API is now obsolete.

Use the UpdateMailSettings method of the SPAdministrationWebApplication class to update default mail settings instead. (In Windows SharePoint Services 2.0 the OutboundSmtpServer property got the name of the SMTP server used for e-mail messages in the SharePoint Foundation deployment, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().",  _
    False)> _
Public ReadOnly Property OutboundSmtpServer As String
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As String

value = instance.OutboundSmtpServer
[ObsoleteAttribute("Default mail settings are now updated through SPAdministrationWebApplication.Local.UpdateMailSettings().", 
    false)]
public string OutboundSmtpServer { get; }

Property Value

Type: System.String
A string that contains the name of the SMTP server.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace