I am using Database Mail functionality to send mail from a SQL Server 2008 database via following stored procedure execution:
EXEC sp_send_dbmail @profile_name = 'MyProfile',
@recipients = '[email protected]',
@subject = 'Test message',
@body = 'Congrats Database Mail Received By you Successfully.'
I have tried with my gmail account profile on my local system it's working properly but not with my company or outlook profile.
Error message:
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 5 . 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 abc.j.i.ooo:pp). )
Reference
http://blogs.msdn.com/b/suhde/archive/2009/07/12/how-to-configure-sql-server-database-mail-to-send-email-using-your-windows-live-mail-account-or-your-gmail-account.aspx
What would be the problem?
Thanks