<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: SQL SERVER - 2008 - Configure Database Mail - Send Email From SQL Database</title>
	<atom:link href="http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<pubDate>Wed, 07 Jan 2009 20:49:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Yogesh Jaju</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44961</link>
		<dc:creator>Yogesh Jaju</dc:creator>
		<pubDate>Sat, 20 Dec 2008 10:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44961</guid>
		<description>How to create Scheduling of SQL Email?
I wish to have email generation from SQL Server daily at 0900 with particular data from database. 

....</description>
		<content:encoded><![CDATA[<p>How to create Scheduling of SQL Email?<br />
I wish to have email generation from SQL Server daily at 0900 with particular data from database. </p>
<p>&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hany</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44567</link>
		<dc:creator>Hany</dc:creator>
		<pubDate>Sat, 06 Dec 2008 03:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44567</guid>
		<description>What about reading emails? Is it true that Microsoft will, or did, disable this functionality ? 

If so this will be very Interesting logic... If you can't secure it then kill it... Well...I hope I am wrong,  I have an application that reads and process email in 2000 and hoped to upgrade... Any feedback?</description>
		<content:encoded><![CDATA[<p>What about reading emails? Is it true that Microsoft will, or did, disable this functionality ? </p>
<p>If so this will be very Interesting logic&#8230; If you can&#8217;t secure it then kill it&#8230; Well&#8230;I hope I am wrong,  I have an application that reads and process email in 2000 and hoped to upgrade&#8230; Any feedback?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44564</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Fri, 05 Dec 2008 23:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44564</guid>
		<description>Thanks Nitin,

So do you have any idea why it's giving me an 'authentication required' error?</description>
		<content:encoded><![CDATA[<p>Thanks Nitin,</p>
<p>So do you have any idea why it&#8217;s giving me an &#8216;authentication required&#8217; error?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin Reddy</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44479</link>
		<dc:creator>Nitin Reddy</dc:creator>
		<pubDate>Tue, 02 Dec 2008 08:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44479</guid>
		<description>@Amy:

You don't have to setup SMTP on IIS, unless you are planning to use it instead of GMail's SMTP server.

If you do setup an SMTP server on IIS, then you've got to specify "localhost" instead of "smtp.gmail.com".

-Nitin</description>
		<content:encoded><![CDATA[<p>@Amy:</p>
<p>You don&#8217;t have to setup SMTP on IIS, unless you are planning to use it instead of GMail&#8217;s SMTP server.</p>
<p>If you do setup an SMTP server on IIS, then you&#8217;ve got to specify &#8220;localhost&#8221; instead of &#8220;smtp.gmail.com&#8221;.</p>
<p>-Nitin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44464</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Mon, 01 Dec 2008 12:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44464</guid>
		<description>Hi, I have tried setting up database mail (SQL SERVER 2005) before seeing your article, and it is the same thing basically that I did (your gmail example).
I get the error:
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2008-12-01T07:01:53). 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. 

I use this exact same account and settings for smtp in C#/ASP.NET and it works there.

Here are my configurations:
- enabled Database Mail stored procedures
- created a new account (smtp.gmail.com, port 587, checked SSL required, valid username, valid password)
- created a new profile that uses that account (public, default)
- send test email (valid email)...

Am I missing something? Do I need to manually add user to DatabaseMailUserRole? (somehow that role did not exist, I had to add it manually)
Do I need to setup an SMTP server in IIS?

Thanks,
Amy</description>
		<content:encoded><![CDATA[<p>Hi, I have tried setting up database mail (SQL SERVER 2005) before seeing your article, and it is the same thing basically that I did (your gmail example).<br />
I get the error:<br />
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2008-12-01T07:01:53). 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. </p>
<p>I use this exact same account and settings for smtp in C#/ASP.NET and it works there.</p>
<p>Here are my configurations:<br />
- enabled Database Mail stored procedures<br />
- created a new account (smtp.gmail.com, port 587, checked SSL required, valid username, valid password)<br />
- created a new profile that uses that account (public, default)<br />
- send test email (valid email)&#8230;</p>
<p>Am I missing something? Do I need to manually add user to DatabaseMailUserRole? (somehow that role did not exist, I had to add it manually)<br />
Do I need to setup an SMTP server in IIS?</p>
<p>Thanks,<br />
Amy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saagar</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44217</link>
		<dc:creator>Saagar</dc:creator>
		<pubDate>Fri, 14 Nov 2008 07:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44217</guid>
		<description>Hi Pinal,

I got the solution for HTML Tags Mail format

Thnax

Regards,
saagar</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I got the solution for HTML Tags Mail format</p>
<p>Thnax</p>
<p>Regards,<br />
saagar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saagar</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44216</link>
		<dc:creator>Saagar</dc:creator>
		<pubDate>Fri, 14 Nov 2008 07:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44216</guid>
		<description>Hello Pinal Dev

Thanx for ur this gr8 help.

Some days before i just heard abt Database mail.
I fired query in Google (thanx google :) )
I got ur article.
It works finly.

Just one silly question : 
If i want to send mail with HTML tags so what to do for that ?

Thanx again to you and Monica also

Regards,
Saagar</description>
		<content:encoded><![CDATA[<p>Hello Pinal Dev</p>
<p>Thanx for ur this gr8 help.</p>
<p>Some days before i just heard abt Database mail.<br />
I fired query in Google (thanx google :) )<br />
I got ur article.<br />
It works finly.</p>
<p>Just one silly question :<br />
If i want to send mail with HTML tags so what to do for that ?</p>
<p>Thanx again to you and Monica also</p>
<p>Regards,<br />
Saagar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cesar</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44205</link>
		<dc:creator>Cesar</dc:creator>
		<pubDate>Thu, 13 Nov 2008 17:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44205</guid>
		<description>Hello, I need to create a database that will contain student's grades for different subjects and different grades. Then I need to send each student their individual grades only. How can I achieve that?</description>
		<content:encoded><![CDATA[<p>Hello, I need to create a database that will contain student&#8217;s grades for different subjects and different grades. Then I need to send each student their individual grades only. How can I achieve that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marshall</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44204</link>
		<dc:creator>marshall</dc:creator>
		<pubDate>Thu, 13 Nov 2008 15:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44204</guid>
		<description>Hi Dave &#38; All

I configured database mail to send me emails when job fails.When the job fails and emial is sent to me on the subject box it says'job completed'.same thing appear if i configure database mail to send email when the job succeeds or completes.How to make the 'subject' to say 'job failed' when the condition was 'send email when job fails' and 'job succeed' when  the condition is 'send email when job succeeds'?
Thanks
Marshall</description>
		<content:encoded><![CDATA[<p>Hi Dave &amp; All</p>
<p>I configured database mail to send me emails when job fails.When the job fails and emial is sent to me on the subject box it says&#8217;job completed&#8217;.same thing appear if i configure database mail to send email when the job succeeds or completes.How to make the &#8217;subject&#8217; to say &#8216;job failed&#8217; when the condition was &#8217;send email when job fails&#8217; and &#8216;job succeed&#8217; when  the condition is &#8217;send email when job succeeds&#8217;?<br />
Thanks<br />
Marshall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marshall</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44188</link>
		<dc:creator>marshall</dc:creator>
		<pubDate>Wed, 12 Nov 2008 21:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44188</guid>
		<description>Hi Dave &#38; All,

I want to implement a trigger that will send email using database mail whenever anybody creates a new database on a server without letting me know aobut it.Can anybody give me the detail to do it please?
Thanks

!!!!the posts are awesome here.

Marshall</description>
		<content:encoded><![CDATA[<p>Hi Dave &amp; All,</p>
<p>I want to implement a trigger that will send email using database mail whenever anybody creates a new database on a server without letting me know aobut it.Can anybody give me the detail to do it please?<br />
Thanks</p>
<p>!!!!the posts are awesome here.</p>
<p>Marshall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atanu</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-44097</link>
		<dc:creator>Atanu</dc:creator>
		<pubDate>Fri, 07 Nov 2008 10:27:54 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-44097</guid>
		<description>Imran you promised screenshot.....

Where Are they?

Your Solution is Not working for me....

Its giving error

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 5 (2008-11-07T15:23:49). Exception Message: Could not connect to mail server. (No such host is known). )</description>
		<content:encoded><![CDATA[<p>Imran you promised screenshot&#8230;..</p>
<p>Where Are they?</p>
<p>Your Solution is Not working for me&#8230;.</p>
<p>Its giving error</p>
<p>The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 5 (2008-11-07T15:23:49). Exception Message: Could not connect to mail server. (No such host is known). )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doris Sebe</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43986</link>
		<dc:creator>Doris Sebe</dc:creator>
		<pubDate>Fri, 31 Oct 2008 14:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43986</guid>
		<description>How do send email from Microsoft Access using VB .NET 2008?

Thank you</description>
		<content:encoded><![CDATA[<p>How do send email from Microsoft Access using VB .NET 2008?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doris Sebe</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43985</link>
		<dc:creator>Doris Sebe</dc:creator>
		<pubDate>Fri, 31 Oct 2008 14:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43985</guid>
		<description>Wow

Very,very interesting, i never had of Db Mail before.

I am currently using VB .NET 2008.

My question is, is this what i need to send emails.
                        Can i get data from the database.
                        Do you something i can us when i want to send SMS?</description>
		<content:encoded><![CDATA[<p>Wow</p>
<p>Very,very interesting, i never had of Db Mail before.</p>
<p>I am currently using VB .NET 2008.</p>
<p>My question is, is this what i need to send emails.<br />
                        Can i get data from the database.<br />
                        Do you something i can us when i want to send SMS?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: notShai</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43883</link>
		<dc:creator>notShai</dc:creator>
		<pubDate>Thu, 23 Oct 2008 19:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43883</guid>
		<description>hello, i followed the procedure and i am able to send email from the server successfully.
HOWEVER - i cant get the Jobs to use the db mail feature - when i go to Job Properties -- Notifications, check the E-mail box the drop down is EMPTY ! nothing to select from although i have the db email profile setup and working.
any ideas? (i restarted the agent, didnt help)</description>
		<content:encoded><![CDATA[<p>hello, i followed the procedure and i am able to send email from the server successfully.<br />
HOWEVER - i cant get the Jobs to use the db mail feature - when i go to Job Properties &#8212; Notifications, check the E-mail box the drop down is EMPTY ! nothing to select from although i have the db email profile setup and working.<br />
any ideas? (i restarted the agent, didnt help)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43729</link>
		<dc:creator>Hari</dc:creator>
		<pubDate>Thu, 16 Oct 2008 05:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43729</guid>
		<description>Thanks Pinal , Monica.
Good Article .Really helpful .


Rgds,
Hari</description>
		<content:encoded><![CDATA[<p>Thanks Pinal , Monica.<br />
Good Article .Really helpful .</p>
<p>Rgds,<br />
Hari</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43647</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Fri, 10 Oct 2008 20:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43647</guid>
		<description>Can anyone help me with this?

the following script which returns the count of cases in the support queue and the date/time of the oldest case.  Then it emails me the stats.

It works fine when I run from the query window, but when I run as a step in the job, the @body1 assignment is lost and I have no body in my email.  Do you have any ideas about why the job appears to lose the variable assignment?

declare @CasesInSupportQueueCount varchar(10)
declare @OldestCaseInSupportQueue DATETIME
declare @body1 varchar(100)
declare @CRLF char(2)

SET @CasesInSupportQueueCount = (SELECT COUNT (qi.queueitemid) AS CasesInSupportQueueCount
FROM FilteredQueueItem as qi
JOIN FilteredQueue as q
ON qi.queueid = q.queueid
WHERE q.Name = 'Support' AND qi.objecttypecodename = 'Case')

SET @OldestCaseInSupportQueue = (SELECT MIN (qi.createdon)
FROM FilteredQueueItem as qi
JOIN FilteredQueue as q
ON qi.queueid = q.queueid
WHERE q.Name = 'Support' AND qi.objecttypecodename = 'Case')

SET @CRLF = CHAR(13) + CHAR(10)
SET @body1 = 'Queue Statistics: ' + @CRLF +
'Queue Count: ' + @CasesInSupportQueueCount + @CRLF +
'Earliest in Queue: ' + CAST(@OldestCaseInSupportQueue AS varchar(30))

exec msdb.dbo.sp_send_dbmail
@recipients = 'Email@email.com',
@subject = 'CRM QUEUE STATISTICS' ,
@body = @body1,
@body_format = 'TEXT',
@profile_name = 'Admin'


RESULTS WHEN SCRIPT IS EXECUTED FROM QUERY ANALYZER WINDOW:

Queue Statistics:
Queue Count: 7
Earliest in Queue: Otc 9 2008 1:59PM 

RESULTS WHEN RUN AS JOB.  (There is only one step in my job.)
Email sent but no body is display

IF I CHANGE
@body = @body1,
TO
@body = ‘just a test’,
On the email I get:
 
Just a test 

Thanks</description>
		<content:encoded><![CDATA[<p>Can anyone help me with this?</p>
<p>the following script which returns the count of cases in the support queue and the date/time of the oldest case.  Then it emails me the stats.</p>
<p>It works fine when I run from the query window, but when I run as a step in the job, the @body1 assignment is lost and I have no body in my email.  Do you have any ideas about why the job appears to lose the variable assignment?</p>
<p>declare @CasesInSupportQueueCount varchar(10)<br />
declare @OldestCaseInSupportQueue DATETIME<br />
declare @body1 varchar(100)<br />
declare @CRLF char(2)</p>
<p>SET @CasesInSupportQueueCount = (SELECT COUNT (qi.queueitemid) AS CasesInSupportQueueCount<br />
FROM FilteredQueueItem as qi<br />
JOIN FilteredQueue as q<br />
ON qi.queueid = q.queueid<br />
WHERE q.Name = &#8216;Support&#8217; AND qi.objecttypecodename = &#8216;Case&#8217;)</p>
<p>SET @OldestCaseInSupportQueue = (SELECT MIN (qi.createdon)<br />
FROM FilteredQueueItem as qi<br />
JOIN FilteredQueue as q<br />
ON qi.queueid = q.queueid<br />
WHERE q.Name = &#8216;Support&#8217; AND qi.objecttypecodename = &#8216;Case&#8217;)</p>
<p>SET @CRLF = CHAR(13) + CHAR(10)<br />
SET @body1 = &#8216;Queue Statistics: &#8216; + @CRLF +<br />
&#8216;Queue Count: &#8216; + @CasesInSupportQueueCount + @CRLF +<br />
&#8216;Earliest in Queue: &#8216; + CAST(@OldestCaseInSupportQueue AS varchar(30))</p>
<p>exec msdb.dbo.sp_send_dbmail<br />
@recipients = &#8216;Email@email.com&#8217;,<br />
@subject = &#8216;CRM QUEUE STATISTICS&#8217; ,<br />
@body = @body1,<br />
@body_format = &#8216;TEXT&#8217;,<br />
@profile_name = &#8216;Admin&#8217;</p>
<p>RESULTS WHEN SCRIPT IS EXECUTED FROM QUERY ANALYZER WINDOW:</p>
<p>Queue Statistics:<br />
Queue Count: 7<br />
Earliest in Queue: Otc 9 2008 1:59PM </p>
<p>RESULTS WHEN RUN AS JOB.  (There is only one step in my job.)<br />
Email sent but no body is display</p>
<p>IF I CHANGE<br />
@body = @body1,<br />
TO<br />
@body = ‘just a test’,<br />
On the email I get:</p>
<p>Just a test </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Navneet Nagpal</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43429</link>
		<dc:creator>Navneet Nagpal</dc:creator>
		<pubDate>Wed, 01 Oct 2008 12:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43429</guid>
		<description>Hi thanks, a lot for posting solution for sending mail.</description>
		<content:encoded><![CDATA[<p>Hi thanks, a lot for posting solution for sending mail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakob H. Heidelberg</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43286</link>
		<dc:creator>Jakob H. Heidelberg</dc:creator>
		<pubDate>Fri, 26 Sep 2008 12:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43286</guid>
		<description>Hi Srinivas

My guess is, that you are not allowed to relay on the (SMTP) server you are using. Make sure the SQL servers IP address is allowed to relay on the SMTP/mail server - og use Basic Authentication with a username/password.

Best regards

Jakob H. Heidelberg
MVP:Enterprise Security</description>
		<content:encoded><![CDATA[<p>Hi Srinivas</p>
<p>My guess is, that you are not allowed to relay on the (SMTP) server you are using. Make sure the SQL servers IP address is allowed to relay on the SMTP/mail server - og use Basic Authentication with a username/password.</p>
<p>Best regards</p>
<p>Jakob H. Heidelberg<br />
MVP:Enterprise Security</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srinivas</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-43216</link>
		<dc:creator>srinivas</dc:creator>
		<pubDate>Wed, 24 Sep 2008 17:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-43216</guid>
		<description>after configuring the datamail, when i send the test  mail using send test mail tab..i am getting following error.
exception mesgae:can not send mails to mail server, mailbox is unavailble.
server response was 5.7.1;client does nto ahve permssions to send as this sender,

am using the sql service acoutn.

how do i knwo, wthether my account is having mailbox or not  or do we need mailbox user account.

Regards
Srinivas</description>
		<content:encoded><![CDATA[<p>after configuring the datamail, when i send the test  mail using send test mail tab..i am getting following error.<br />
exception mesgae:can not send mails to mail server, mailbox is unavailble.<br />
server response was 5.7.1;client does nto ahve permssions to send as this sender,</p>
<p>am using the sql service acoutn.</p>
<p>how do i knwo, wthether my account is having mailbox or not  or do we need mailbox user account.</p>
<p>Regards<br />
Srinivas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2008/08/23/sql-server-2008-configure-database-mail-send-email-from-sql-database/#comment-42519</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Mon, 08 Sep 2008 05:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=869#comment-42519</guid>
		<description>@ Narayan,

By default we will use port 25 to configure database mail, which is usually blocked by windows firewall for security reason,

try the following.
1. Disable firewall and test if databasemail sends email.
2. Make an exception in the windows firewall. 

Or this also happens when you use wrong port numbers, 


Just as an example use these values when setting up a database mail feature: You need to have a gmail account, which can be created free if you go to gmail.com, you can send email using gmail service free of cost :) So you can try this example and it works perfect. 

In database mail, first create profile, and when you create an account, use these values. 

Give Account name: SQL Server Alerts System
Description: XYZ

Outgoing mail Server ( SMTP)

email id: youremailid#gmail.com ( should have gmail.com)
Display Name: SQL Server 
Reply email: can leave blank 
Server name: smtp.gmail.com ( this is really important)
port no: 587 ( on many website this is given as 465 which is wrong, use 587 )
Check : This server requires a secure connection 
Check Basic Authentication
username: youremailid@gmail.com ( should have gmail.com)
password: ( top secret , dont display ) ... ;)
confirm password: confirm your password 

click next and also you need to make it default public profile.

After you do this, you also have to change SQL Server Agent  properties, in Properties click alerts system and then select database mail. 
MOST IMRORTANT when you make changes, to SQL SERVER AGENT properties, restart only SQL SERVER AGENT. 

right click SQL Server Agent and click restart, and then test your database mail. 

to test, right click database mail and click send test mail...  VERY IMPORTANT ( Select right profile/account from drop down list), put any email id and click send test email. click ok.

Right click database mail, select view database mail logs keep refreshing ... to see if any error message had occured. mean while look in your inbox if you recieved your email. 

In few days I will take screen shots on how to configure database mail, taking a live example.

All with GUI's no scripts :) 


Hope this helps.
Imran.</description>
		<content:encoded><![CDATA[<p>@ Narayan,</p>
<p>By default we will use port 25 to configure database mail, which is usually blocked by windows firewall for security reason,</p>
<p>try the following.<br />
1. Disable firewall and test if databasemail sends email.<br />
2. Make an exception in the windows firewall. </p>
<p>Or this also happens when you use wrong port numbers, </p>
<p>Just as an example use these values when setting up a database mail feature: You need to have a gmail account, which can be created free if you go to gmail.com, you can send email using gmail service free of cost :) So you can try this example and it works perfect. </p>
<p>In database mail, first create profile, and when you create an account, use these values. </p>
<p>Give Account name: SQL Server Alerts System<br />
Description: XYZ</p>
<p>Outgoing mail Server ( SMTP)</p>
<p>email id: youremailid#gmail.com ( should have gmail.com)<br />
Display Name: SQL Server<br />
Reply email: can leave blank<br />
Server name: smtp.gmail.com ( this is really important)<br />
port no: 587 ( on many website this is given as 465 which is wrong, use 587 )<br />
Check : This server requires a secure connection<br />
Check Basic Authentication<br />
username: <a href="mailto:youremailid@gmail.com">youremailid@gmail.com</a> ( should have gmail.com)<br />
password: ( top secret , dont display ) &#8230; ;)<br />
confirm password: confirm your password </p>
<p>click next and also you need to make it default public profile.</p>
<p>After you do this, you also have to change SQL Server Agent  properties, in Properties click alerts system and then select database mail.<br />
MOST IMRORTANT when you make changes, to SQL SERVER AGENT properties, restart only SQL SERVER AGENT. </p>
<p>right click SQL Server Agent and click restart, and then test your database mail. </p>
<p>to test, right click database mail and click send test mail&#8230;  VERY IMPORTANT ( Select right profile/account from drop down list), put any email id and click send test email. click ok.</p>
<p>Right click database mail, select view database mail logs keep refreshing &#8230; to see if any error message had occured. mean while look in your inbox if you recieved your email. </p>
<p>In few days I will take screen shots on how to configure database mail, taking a live example.</p>
<p>All with GUI&#8217;s no scripts :) </p>
<p>Hope this helps.<br />
Imran.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
