Results 1 to 2 of 2

Thread: SQL Server 2005 Database Mail

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Location
    Glasgow, Scotland
    Posts
    77

    SQL Server 2005 Database Mail

    Hi all

    I've got a number of scheduled tasks which run on our SQL2k5 server. At the present moment, I am forced to go into the server and manually check that the jobs have run properly.

    I've managed to set up the email account, and tested it to ensure that it works. I've also created an Operator bearing my details, so that the system knows to send emails to me. However, when I set up one of my frequent tasks to send an email advising of the job's finishing status, it appears to do nothing. When I look at the database mail log, I can see the following error:

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

    I guess my main question would be this: what do I need to do to the scheduled job in order to get it to establish that email session before actually sending the mail?

    TIA
    Wise man once said: "Don't ever get married, just find a woman you don't like and buy her a house".
    According to ancient Chinese proverb, "Man with hole in pocket feels cocky all day".

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036

    Re: SQL Server 2005 Database Mail

    "The dark side clouds everything. Impossible to see the future is."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width