Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi guys,

I want to send Email from SQL Server 2005,
I create Profile and Account by using SQL Server Management,
I used this Stored Procedure:
SQL
EXEC msdb.dbo.sp_send_dbmail
				@profile_name = 'MyProfileName',
				@recipients = 'MyEmail@hotmail.com',
				@subject = 'New Islamic Topics',
				@body_format = 'HTML',    
				@body = 'Welcome in my Website.';


every thing is work nice and this message appear 'Mail queued.' when run the Procedure msdb.dbo.sp_send_dbmail,

but the Email not received when i open my email nor in Junk mail,

I try every thing but no way, this the error message from log:

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2012-10-09T09:09:03). Exception Message: Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at).
Posted
Updated 8-Oct-12 21:12pm
v4

 
Share this answer
 
v2
Comments
MrLonely_2 31-Oct-12 2:13am    
Thank man, but how to reach this setting >> HT server configuration ??
[no name] 31-Oct-12 2:16am    
@MrProgrammer_78: just check this link once

http://araihan.wordpress.com/2010/03/17/how-to-configure-exchange-2010-hub-transport-ht-server/

http://technet.microsoft.com/en-us/library/bb123514.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900