Megosztás a következőn keresztül:


New Account (Database Mail)

Use this page to create a new Database Mail account. A Database Mail account contains information for sending e-mail to an SMTP server.

About Database Mail Accounts

A Database Mail account contains the information that SQL Server uses to send e-mail messages to an SMTP server. Each account contains information for one e-mail server.

A Database Mail account is only used for Database Mail. A Database Mail account does not correspond to a SQL Server account or a Microsoft Windows account. Database Mail can be sent using the credentials of the SQL Server Database Engine, using other credentials that you supply, or anonymously. When using basic authentication, the user name and password in a Database Mail account are only used for authentication with the e-mail server. An account need not correspond to a SQL Server user or a user on the computer running SQL Server.

Security noteSecurity Note

If your e-mail server requires authentication, consider creating a user on that server specifically for Database Mail. This user should have minimal permissions, and should not be used for any other purpose.

Options

  • Account name
    Type the name of the new account.

  • Description
    Type a description of the account. The description is optional.

  • E-mail address
    Type the name of the e-mail address for the account. This is the e-mail address that e-mail is sent from. For example, an account for SQL Server Agent may send e-mail from the address SqlAgent@Adventure-Works.com.

  • Display name
    Type the name to show on e-mail messages sent from this account. The display name is optional. This is the name displayed on messages sent from this account. For example, an account for SQL Server Agent may display the name "SQL Server Agent Automated Mailer" on e-mail messages.

  • Reply e-mail
    Type the e-mail address that will be used for replies to e-mail messages sent from this account. The reply e-mail is optional. For example, replies to an account for SQL Server Agent may go to the database administrator, danw@Adventure-Works.com.

  • Server name
    Type the name or IP address of the SMTP server the account uses to send e-mail. Typically this is in a format similar to smtp.<your_company>.com. For help with this, consult your mail administrator.

  • Port number
    Type the port number of the SMTP server for this account. Most SMTP servers use port 25.

  • This server requires a secure connection (SSL)
    Encrypts communication using Secure Sockets Layer.

  • Windows Authentication using Database Engine service credentials
    Connection is made to the SMTP server using the credentials configured for the SQL Server Database Engine service.

  • Basic Authentication
    Specify the user name and password required by the SMTP server.

  • User name
    Type the user name that Database Mail uses to log in to the SMTP server. The user name is required if the SMTP server requires basic authentication.

  • Password
    Type the password that Database Mail uses to log in to the SMTP server. The password is required if the SMTP server requires basic authentication.

  • Confirm password
    Type the password again to confirm the password. The password is required if the SMTP server requires basic authentication.

  • Anonymous authentication
    Mail is sent to the SMTP server without login credentials. Use this option when the SMTP server does not require authentication.