Email Notification Not working with Gmail Settings

I think I have all the settings correct. What could be the reason for not able to send the mail through mail notification? I tried third party testing service to test the smtp server settings. I have the same thing going on with it also. Further, I tried it with yahoo mail, but I did not have any sucess with it either. So, should I write a script on Python and link it to the notification? Is that the only way possible?