Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 DBMAIL! aaaggh

Author  Topic 

merrittr
Starting Member

10 Posts

Posted - 2010-03-09 : 09:00:01
I have configured it and can send a test email from it however from a maintenance plan I cannot send an email all I get is in the error log (not the email error log):


Date 3/9/2010 7:49:39 AM
Log SQL Agent (Current - 3/9/2010 7:49:00 AM)

Message
[264] An attempt was made to send an email when no email session has been established




the maintenance plan is run by the sa account subbing in other accounts ie domain ones doesn't help...


any ideas?

DaleTurley
Yak Posting Veteran

76 Posts

Posted - 2010-03-09 : 11:40:49
Try opening the SQL Server Agent properties, Alert System tab and click 'Enable Mail Profile'
'Mail System' = Database Mail
'Mail Profile# = Profile Name
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2010-03-09 : 11:56:35
You should restart SQL Server Agent for mail profile to kick off through jobs.
Go to Top of Page
   

- Advertisement -