Chapter 2: Before you Create any Maintenance Plans… 36 Figure 2.6: If the SMTP settings are not set correctly, Database Mail will not work.. Once you're happy with the account informatio
Trang 1Chapter 2: Before you Create any Maintenance Plans…
36
Figure 2.6: If the SMTP settings are not set correctly, Database Mail will not work.
Once you're happy with the account information, clicking OK will return you to the
original mail Profile screen, which will display the SMTP account you just set up, as shown
in Figure 2.7
Trang 2Chapter 2: Before you Create any Maintenance Plans…
Figure 2.7: Although you are only setting up one account, you can see that multiple
accounts can be set up if desired.
To continue with the Database Mail Configuration Wizard, click on Next to reach the Manage Profile Security screen, shown in Figure 2.8.
Trang 3Chapter 2: Before you Create any Maintenance Plans…
38
Figure 2.8: You have to specify whether a mail profile is public or private.
As shown in Figure 2.8, your Maintenance Plan profile has been created (it's called
"Maintenance Plan") Now you have to assign the profile as either public or private A
private profile is only usable by specific users or roles, while a public profile allows any user
or role (with access to msdb) to send mail To keep your setup as simple as possible, make the Maintenance Plan profile public, by selecting the checkbox under Public then clicking Next
to move on to the Configure System Parameters screen, shown in Figure 2.9.
Trang 4Chapter 2: Before you Create any Maintenance Plans…
Figure 2.9: You have the opportunity to configure additional Database Mail parameters.
The last option in the Database Mail Configuration Wizard allows you to set the values of specific Database Mail parameters for the profile Generally, we will leave these options at their default values The only one I suggest you might consider changing is the value of the
Account Retry Attempts parameter By default, this value is 1, which means that there is
only one attempt made to send an e-mail If the SMTP server should be down when an e-mail is to be sent, and there are no alternative SMTP accounts available, then the e-mail won't be delivered If you want to add some robustness to Database Mail, and help ensure that the mail is delivered should the SMTP server go down for a short time, you can choose
Trang 5Chapter 2: Before you Create any Maintenance Plans…
40
Figure 2.10: You are now done configuring Database Mail.
After a quick review of the summary screen, click on Finish and a final Configuring… screen
appears, (Figure 2.11) indicating that your profile and its SMTP account have been created