SQL Server
How to configure SQL Server Database Mail to send email using your Windows Live Mail Account or your GMail Account
Hi Friends,
This post comes as a response to requests from many of our customers, who want to know the step by step process on how to configure SQL Server Database Mail to send emails using their Windows Live Mail Account or their Gmail Account.
If you are using SQL Server 2005 or higher, you might have noticed that there is now a “Database Mail” (DB Mail) option under “Management”. This is very different from the “SQL Mail” that we had on previous versions (it still exists under Management\Legacy). Using DB Mail, you no longer have to configure a mailbox on your machine, and you certainly do not need to run the SQL Server or the SQL Server Agent under the account you want to send emails from. Moreover, you can have multiple mail profiles and you can decide which account to use under various conditions.
So, here we go on the steps to configure DB Mail:
- This starts the Database Mail Configuration Wizard. Click Next.
Now, you are prompted to create a New Database Mail Account. Enter any Account Name andDescription. The other parameters are as follows:
- For configuring Windows Live Mail:
Email address: Your Live e-mail ID
Display name: Your name
Reply e-mail: Any reply-to email account
Server name: smtp.live.com
Port number: 25
This server requires a secure connection (SSL): Checked ON
In the next section, choose Basic Authentication and enter the following information:
User name: Your Live e-mail ID
Password: Password for your Live e-mail ID
Confirm password: Password for your Live e-mail ID
The configuration should look like the screenshot below. Now, click OK.
- For configuring Google Mail (Gmail):Email address: Your Gmail ID
Display name: Your name
Reply e-mail: Any reply-to email account
Server name: smtp.gmail.com
Port number: 587
This server requires a secure connection (SSL): Checked ON
(Settings looked up from Gmail Help)
In the next section, choose Basic Authentication and enter the following information:
User name: Your gmail ID
Password: Password for your gmail ID
Confirm password: Password for your gmail ID
The configuration should look like the screenshot below. Now, click OK.
Usar el puerto 25 y no el 587
- You should receive the email in a few seconds. If you have received the email, you have been able to configure DB Mail successfully, and you can now start using DB Mail.
Hope this post will be helpful.
Disclaimer:
None of the email addresses used in this post belong to me. Please do not try to contact me in any of these email addresses, as your emails will never reach me.
All information provided here is my personal opinion and is neither verified nor approved by Microsoft before it is published. All information, and code samples, if any, is provided "AS IS" with no warranties and confers no rights.
None of the email addresses used in this post belong to me. Please do not try to contact me in any of these email addresses, as your emails will never reach me.
All information provided here is my personal opinion and is neither verified nor approved by Microsoft before it is published. All information, and code samples, if any, is provided "AS IS" with no warranties and confers no rights.
Request to my readers: Please let me know on what topics you would like me write on. I would be happy to be of any help to my readers.