Microsoft Windows SharePoint Services
HomeBackForwardPrint

Show AllShow All

Configure e-mail settings

Configure e-mail settings

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.

  1. Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. Press the PLUS SIGN (+) next to the server name that contains the SMTP server you want to configure.
  3. Right-click the SMTP virtual server you want to configure, and then click Properties.
  4. On the Access tab, in the Access control section, click Authentication.
  5. On the Authentication dialog box, in the Select acceptable authentication methods for this resource section, verify that Anonymous access is selected.
  6. Click OK.
  7. On the Access tab, under Relay restrictions, click Relay.
  8. In the Select which computer may relay through this virtual server section, select All except the list below.
  9. Click OK to close the Relay Restrictions dialog box.
  10. Click OK to close the Properties dialog box.

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

  1. On the SharePoint Central Administration page, in the Server Configuration section, click Configure e-mail server settings.
  2. In the Outbound SMTP server box, type the name of the Simple Mail Transfer Protocol (SMTP) mail server to use for sending messages.
  3. In the From address box, type the e-mail address from which to send e-mail messages.

    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.

  4. In the Reply-to address box, type the e-mail address to which users can reply.

    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.

  5. In the Character set box, select the character set to use.
  6. Click OK.

Specify mail settings for a virtual server

  1. On the SharePoint Central Administration page, under Virtual Server Configuration, click Configure virtual server settings.
  2. On the Virtual Server List page, click the name of the virtual server you want to configure.
  3. In the Virtual Server Management section, click Virtual server e-mail settings .
  4. In the Mail Settings section, in the Outbound SMTP server box, type the name of the SMTP mail server to use for sending messages.
  5. In the From address box, type the e-mail address from which to send e-mail messages.

    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.

  6. In the Reply-to address box, type the e-mail address to which users can reply.

    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.

  7. In the Character set box, select the character set to use.
  8. Click OK.

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:

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

Related Topic

About configuring e-mail settings
©2003 Microsoft Corporation. All rights reserved.