Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET SQL-Server VB.NET , +
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:
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 8-Oct-12 18:56pm
Edited 8-Oct-12 22:12pm
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
v2
Comments
MrProgrammer_78 at 31-Oct-12 2:13am
   
Thank man, but how to reach this setting >> HT server configuration ??
snehasish nandy at 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
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 BillWoodruff 85
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 31 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100