SMTP settings are
E-mail address: abc@gmail.com
Server Name: tried smtp.gmail.com and smtp.googlemail.com
port: tried 587 and 465 (both added to firewall TCP outgoing and incoming)
Checked SSL connection
Basic Authentication, username abc@gmail.com, password gmail password
have troubleshoot all these steps http://msdn.microsoft.com/en-us/library/ms187540(v=sql.100).aspx , all seems to be working but receiving error message "The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2012-12-10T15:10:46). Exception Message: Could not connect to mail server. (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.79.109:587). )"
job task is Last modified by "sa"
I logged in the server using domain administrator and this has access rights to DatabaseMailUserRole, on SQL server 2008.
Checked not behind any proxy and firewall removed.