Click here to Skip to main content
11,710,472 members (83,230 online)
Rate this: bad
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 = '',
				@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 17:56pm
Edited 8-Oct-12 21:12pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 549
1 OriginalGriff 255
2 Peter Leow 154
3 Maciej Los 120
4 Abhinav S 120
0 Maciej Los 95
1 Richard MacCutchan 90
2 Abhinav S 90
3 OriginalGriff 80
4 Member 4653839 50

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 31 Oct 2012
Copyright © CodeProject, 1999-2015
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