Export (0) Print
Expand All
Expand Minimize

SPWebApplication.UpdateMailSettings method

Updates the e-mail settings that are used when SharePoint Foundation sends email.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void UpdateMailSettings(
	string strOutboundSMTPServer,
	string strFromAddress,
	string strReplyToAddress,
	int nCodePage
)

Parameters

strOutboundSMTPServer
Type: System.String

A string that contains the name of the outbound SMTP server.

strFromAddress
Type: System.String

A string that contains the "from" address to use for messages.

strReplyToAddress
Type: System.String

A string that contains the reply address that appears in messages generated by SharePoint Foundation.

nCodePage
Type: System.Int32

A string that specifies the code page to use for outbound messages.

Community Additions

ADD
Show:
© 2014 Microsoft