







Email: Stsadm operation (Office SharePoint Server) | |
![]() |
![]() ![]() |
Stsadm command-line tool (Office SharePoint Server) > Stsadm operations (Office SharePoint Server) > General: Stsadm operations (Office SharePoint Server) > |
This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.
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 "[email protected]" |
Yes |
The address you want to appear to e-mail recipients. | ||
replytoaddress (replyto) |
A valid address, such as "[email protected]" |
Yes |
The e-mail address to which you want e-mail recipients to reply. | ||
codepage |
A valid code page value that is supported by Microsoft Office SharePoint Server 2007. |
Yes |
Select the appropriate character set for your language. The default setting is 65001 (Unicode UTF-8).
| ||
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 [email protected] -replytoaddress [email protected] -codepage 65001 -url http://server_name
To configure e-mail settings for the entire farm, use the following syntax:
stsadm -o email -outsmtpserver mail.example.com -fromaddress [email protected] -replytoaddress [email protected] -codepage 65001
See Also
Other Resources
Plan outgoing e-mail (Office SharePoint Server)Configure outgoing e-mail settings (Office SharePoint Server)