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 = 'firstname.lastname@example.org', @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.
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). )
What would be the problem?