DatabaseMail

Jun 11, 2008

We have this SP to dash off our mail through Datbase
How can we send mails to multiple recipients that is multiple emailsIDs

EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'Administrator Desk’,
@recipients = 'abc.efg@hotmail.com''efg@hotmail.com',
@body =’’,
@subject = '’;

View 1 Replies


ADVERTISEMENT

Databasemail

Sep 25, 2007



Hi,
i have set up databasemail to send me e-mail after my sql backup has finished.
Profile and account has bin configured,and test mail ha been sent. Works just fine.
But when my backup has finished, no e-mail is being sent.
Get this error message in error logs: [264] An attemtemt was made to send an e-mail when no email session was established.

My system is
Microsoft Windows Server 2003 R2. SP2. Standard Edition.
SQL sever 2005, sp2
Microsoft SQL Server Management Studio 9.00.3042.00
Microsoft Analysis Services Client Tools 2005.090.3042.00
Microsoft Data Access Components (MDAC) 2000.086.3959.00 (srv03_sp2_rtm.070216-1710)
Microsoft MSXML 2.6 3.0 6.0
Microsoft Internet Explorer 6.0.3790.3959
Microsoft .NET Framework 2.0.50727.832
Operating System 5.2.3790

View 4 Replies View Related

DatabaseMail Issues

Mar 7, 2008

I have been setting up DatabaseMail on my SQL2005 server. I have configured it correctly and sent a test email successfully (by right clicking Database Mail and selecting Send Test Email)

I have configured my operators with the correct details, but don't get any emails after the job has run.

View 4 Replies View Related

Unable To Send Databasemail On A Clustered Environment

Jul 20, 2007

I am able to send databasemail on my staging servers which are non clustered but databasemail fails on my clustered production servers.
Both production and staging servers sit on the same domain(although the domain controller is sitting on one of the staging servers)
I have set up the account and profile and have double checked that it is pointing to the correct SMTP server and to the same one as the staging servers.
I have also enabled database mail in surface area configuration.
The message gets queued, because i see the 'mail is queued' message.
The databaseMail Process also gets started, but during the actual send process I see
The following is the error in the databasemail log.
Any ideas what could be my problem?


Databasemail Log

Date 18/07/2007 18:49:17
Log Database Mail (Database Mail Log)

Log ID 14
Process ID 964
Last Modified 18/07/2007 18:49:17
Last Modified By TT-IXTOOLSixtools

Message
1) Exception Information
===================
Exception Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
HelpLink: NULL
Source: DatabaseMailEngine

StackTrace Information
===================
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.SessionManager.GetAccount(Int32 accountID)
at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession dbSession)
at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)

btw, I ran this command to send mail

declare @body1 varchar(100)

set @body1 = 'Server :'+@@servername+ ' My First Database Email '

EXEC msdb.dbo.sp_send_dbmail @recipients='mytestemail@email.com',

@subject = 'My Mail Test',

@body = @body1,

@body_format = 'HTML' ;

View 5 Replies View Related

Sql Server 2005 Express: Can't See [DatabaseMail] Node In Manamgent Studio's Object Explorer

Dec 10, 2007

I use Windows Vista Home Premium

Here's my Help About Info: Microsoft SQL Server Management Studio Express 9.00.3042.00
Microsoft Data Access Components (MDAC) 6.0.6000.16386 (vista_rtm.061101-2205)
Microsoft MSXML 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 7.0.6000.16546
Microsoft .NET Framework 2.0.50727.1433
Operating System 6.0.6000

I opened up the Surface Area Configuration Tool and chose the "Surface Area Configuration for Features". Choose "Database Mail" and clicked the checkbox "Enable Database Mail Stored Procedures"

When I go into the Management Studio, I can't see the "Database Mail" node under "Management"
I'm thinking I might need a service pack as in the about, I don't see a service pack listed. BUT, when I go to the SQL Server 2005 Express "Service Pack 2" page, there's no option to just download the Service Pack. I recently downloaded (2 weeks ago or so) this Sql Server Express Edition and I'm thinking this might have Service Pack 2 already, but I'm not sure as I don't see it in the "about".

What should I do?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved