Before starting the blog ,i have to thank Mr.Abdul Fareed he is the man behind the blog

enable database mailĀ  using the below command

sp_configure ‘Database Mail XPs’,1
reconfigure with override

You can configure database mail from here.

After configuring database mail you have to change the Gmail setting if you are getting the below error



Step 1

In settings click on Account Profile.


Step 2

Click on Sign-in & Security


Step 3

Go to connected apps & sites

and enable

Allow less secure apps:ON


once you have enabled .you will receive a confirmation from in your Inbox and you are done, now you can send email .








3 thoughts on “Database Mail not working with GMAIL

Leave a Reply

Your email address will not be published. Required fields are marked *