Need help with DB mail

  • Hi experts, need some help. I have a backup job that runs every night. Backup job failed Saturday and Sunday, but I never got any notification. I had configured DB Mail prior to setting this up. I also deleted the profile and created it again but I am not receiving any emails, even when the job runs successfully. I don't know what I am doing wrong.

    FYI-I also sent a test email to myself and I did receive that.

  • right click on SQL Server Agent > Alert system > Have you ticked enable mail profile?

  • BL0B_EATER (5/13/2015)


    right click on SQL Server Agent > Alert system > Have you ticked enable mail profile?

    I just did. Let's see what happens. Thanks for your help.

  • I had a job that ran at 11 and it was supposed to send out alerts when the job runs successfully and it didn't work. No email received.

  • From experience I'm sure you need to restart SQL agent too.

  • Forget Job success/failure, did you try to send a test email after configuring db mail? -- please ignore this, I didn't read the last line in your question.

    If not then you may be missing something, check some steps here: http://sqlwithmanoj.com/2010/09/29/database-mail-setup-sql-server-2005/[/url]

  • So you've validated that database mail is configured correctly by sending yourself a test email and you received it.

    Regarding the job email not being delivered, go to the job configuration and click Notifications. Do you have the checkbox checked and yourself specified as the operator for the appropriate event? If you're not in the list of operators, you'll need to set yourself up as an operator. If you are in the list and all is in order, I'd check out your operator to make sure you have your email defined correctly.

    The last step is that if you have it configured correctly and don't get an email when the succeeds as you expect, you have to check if the job succeeded. Did the job even run?

  • If this the first time you've enabled Mail profile in SQL Agent Alert system, You should restart SQL Agent service.

  • Thank you so much for taking your time out and providing me with some suggestions and the issue has been resolved.

    This is what I did.

    add user to the DatabaseMailUserRole role

    sp_addrolemember @rolename = 'DatabaseMailUserRole'

    ,@membername = '<database user>';

    Also Enable Mail Profile, restart the agent and Viola.

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply