Share via


Email: Stsadm operation (Windows SharePoint Services)

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2008-02-04

Operation name: Email

Description

Sets the e-mail configuration settings for your server.

Syntax

stsadm -o email

**   -outsmtpserver <SMTP server name>**

**   -fromaddress <valid e-mail address>**

**   -replytoaddress <valid e-mail address>**

**    -codepage <valid code page>**

**    [-url <URL name>]**

Parameters

Parameter name and short name

Value

Required?

Description

outsmtpserver

A valid SMTP server name, such as "mail.example.com"

Yes

The name of the outbound SMTP server.

fromaddress (from)

A valid address, such as "someone@example.com"

Yes

The address you want to appear to e-mail recipients.

replytoaddress (replyto)

A valid address, such as "someone@example.com"

Yes

The e-mail address to which you want e-mail recipients to reply.

codepage

A valid code page value that is supported by Windows SharePoint Services 3.0.

Yes

Select the appropriate character set for your language.

The default setting is 65001 (Unicode UTF-8).

Note

To access a list of all available code pages, go to the Character set section on the Outgoing E-mail Settings page of the SharePoint Central Administration Web site.

url

A valid URL name, such as http://server_name

No

A valid URL to a Web application.

Remarks

The outgoing e-mail feature uses an outbound Simple Mail Transfer Protocol (SMTP) service to relay e-mail alerts and notifications.

Outgoing e-mail support can be enabled at both the server farm level (available from the Operations section of Central Administration) and at the Web application level (available from the Application Management section of Central Administration). Therefore, when the url parameter is used, you can specify different settings for a specific Web application.

Outgoing e-mail settings at the Web application level override those set up at the server farm level.

Examples

To configure e-mail settings for a specific Web application, use the following syntax:

stsadm -o email -outsmtpserver mail.example.com -fromaddress someone@example.com -replytoaddress someone@example.com -codepage 65001 -url https://server_name

To configure e-mail settings for the entire farm, use the following syntax:

stsadm -o email -outsmtpserver mail.example.com -fromaddress someone@example.com -replytoaddress someone@example.com -codepage 65001

See Also

Concepts

Plan outgoing e-mail (Windows SharePoint Services)
Configure outgoing e-mail settings (Windows SharePoint Services)