Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Tried to follow the steps provided on link. but did not succeed.

https://www.codeproject.com/tips/846204/how-to-send-mail-using-sql-server-part

please provide a solution.

What I have tried:

Created a profile with smtp.gmail.server settings and tried to sent the mail using Send Test Email inside the Database mail.
Posted
Updated 18-Sep-17 4:14am

1 solution

See Troubleshooting Database Mail[^] and inspect the mail status as suggested there to know what happened. If you are still not able to fix the problem yourself, add the reported errors to your question (use the green 'Improve question' link).

Ensure also that you met the requirements for sending to GMail accounts (server: smtp.gmail.com, port 587, check box 'This server requires a secure connection (SSL)' checked, valid user name and password) and that you have allowed less secure apps to send mail (see Allow less secure apps to access accounts - G Suite Administrator Help[^]).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900