An attempt was made to send an email when no email session has been established

  • Hello Everyone,

    The tittle of this thread is exactly the error message that I try to understand, an error message found in the agent log.

    I have SQL Server 2005 Dev. Edition.

    I configured the Database Mail and test it : it work -> sending me an email.

    I setup an operator, a test job that failed and a notification to be sent to the operator when the jobs fail.

    What could cause this error?

    Regards.

    Carl

  • Carl,

    Did you designate Database Mail as the mail system for SQL Server Agent?

    Greg

    Greg

  • Hello Greg,

    It is exactly the problem.

    I also had to restart the Agent service.

    Thanks a lot.

    Carl

  • No problem.  I just set up Database Mail for the first time  myself and that's what tripped me up so I recognized the problem.

    Greg

    Greg

  • I have this same error.... How do I designate Database Mail as the mail system for SQL Server Agent?

    Thanks!!!

  • Hello Jillk,

    1- Open the SQL Server Agent properties Window

    2- Click on Alert System

    3- Enable mail profile and enter the information for Mail System and Mail Profile

    4- Click on the ok button

    5- Restart the SQL Server Agent

    Bye.

    Carl

  • Carl,

    Thanks!! That worked perfect.

Viewing 7 posts - 1 through 6 (of 6 total)

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