![]() | |||||
![]() ![]() ![]() ![]() ![]() |
If you want to use an Simple Mail Transfer Protocol (SMTP) server in Microsoft Internet Information Services (IIS) to send outbound e-mail messages from Microsoft Windows SharePoint Services, you must configure the SMTP server to allow anonymous access and to allow e-mail messages to be relayed. You can specify the e-mail settings for Windows SharePoint Services by using either SharePoint Central Administration or the command line.
Configure an SMTP server in IIS for use with Windows SharePoint Services
Note To complete this procedure, you must be logged on as a member of the Administrators group on the local computer, or you must be logged on using an account that is both a member of the SharePoint administrators group and that has been granted permissions to administer IIS.
Using SharePoint Central Administration to configure e-mail settings
You specify e-mail settings for a server or server farm. You can also specify e-mail settings for a particular virtual server. The virtual server settings override the settings specified on the SharePoint Central Administration pages. Specify virtual server settings when you want a virtual server to use a different SMTP server for alerts than the one specified in the server settings.
Specify e-mail settings for a server or server farm
This address appears in the From box of any e-mail messages from the server.
Note No e-mail messages are sent to this address, so you can use an unmonitored e-mail address if you want.
If a user replies to an e-mail message from the server, it is sent to this address. You should use an address that is monitored for the reply-to address.
Specify mail settings for a virtual server
This address appears in the From box of any e-mail messages from the server. No e-mail messages are sent to this address, so you can use an unmonitored e-mail address if you want.
If a user replies to an e-mail message from the server, it is sent to this address. You should use an address that is monitored for the reply-to address.
Using the command line to configure e-mail settings
You can also configure e-mail settings from the command line, by using the email operation with Stsadm.exe. The email operation takes the following required parameters:
Note fromaddress can be an unmonitored address.
Note replytoaddress must be a monitored address.
In addition, you can use the optional url parameter to specify settings for a particular virtual server.
The email operation uses the following syntax:
stsadm.exe -o email -outsmtpserver <smtp_server>
-fromaddress <from address> -replytoaddress <reply-to address>
-codepage <codepage> [-url <url>]
For example, to configure the e-mail settings to use the server \\SMTP_server_name, and to use someone@example.com as both the from and reply to addresses, you would use syntax similar to the following:
stsadm.exe -o email -outsmtpserver SMTP_server_name
-fromaddress someone@example.com
-replytoaddress someone@example.com
-codepage 65001
To set the http://server_name virtual server to use a different code page, you would use syntax similar to the following:
stsadm.exe -o email -outsmtpserver SMTP_server_name
-fromaddress someone@example.com -replytoaddress someone@example.com
-codepage <codepage> -url http://server_name