Windows Server TechCenter > Windows Server Forums > General > Server 2008 - Task Scheduler - Send an E-mail fails
Ask a questionAsk a question
 

AnswerServer 2008 - Task Scheduler - Send an E-mail fails

  • Friday, September 05, 2008 4:15 PMSeth H. Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    When ever we set an action to send an E-mail in the Server 2008 Task Scheduler GUI, we get a "Task failed" result of
    "Cannot modify or delete an object that was not added using the COM+ Admin SDK (0x8004020D)  once the task gets to that step.

    I have tried creating tasks that do nothing but try and send an email using the new functionality of the Task Manager and it fails with the exact same error, So I have narrowed it down to the email action being the culprit.  As soon as I remove it from the other tasks, everything works as planned.

    Is there a fix for this?  Is there a permission I need to set somewhere?  It seems that some people have tried running the task as the "Network Service" and it works, but I have had no such luck yet.



     

Answers

All Replies

  • Monday, September 08, 2008 8:35 AMTim Quan - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
     

    Hi,

     

    If a task attempts to send an e-mail, but the e-mail doesn't get sent correctly, first make sure that the settings for the e-mail action on the task are set correctly. The e-mail action must have a valid value for the SMTP server, To, and From settings. For more information about these settings, please refer to the following article:

     

    Actions

    http://technet.microsoft.com/en-us/library/cc722129.aspx

     

    Make sure the SMTP server that sends the e-mail is setup correctly. E-mail is sent using NTLM authentication for Windows SMTP servers, which means that the security credentials used for running the task must also have privileges on the SMTP server to send e-mail. If the SMTP server is a non-Windows based server, then the e-mail will be sent if the server allows anonymous access.

     

    For information about setting up the SMTP server, please see the following article:

     

    SMTP Server Setup

    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e4cf06f5-9a36-474b-ba78-3f287a2b88f2.mspx?mfr=true

     

    And for information about managing SMTP server settings, please see the following article:

     

    SMTP Administration

    http://technet.microsoft.com/en-us/library/cc758258.aspx

     

    Hope it helps.

     

    Tim Quan - MSFT

  • Monday, April 06, 2009 9:41 AMmcm_ham Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm using a third party email server and having problems. This is what I see in the logs:
    "2009-04-06 21:04:58 127.0.0.1 SMTP-IN  127.0.0.1 460 AUTH AUTH+LOGIN 334+RANDOMSTRING COMPUTERNAME 18 12  "

    I'm allowing relaying for 127.0.0.1 but have also enabled windows authentication in addition to it's built in authentication since it looks like Task Manager is attempting to authenticate. But I have no idea what the random character string is in the logs, is that meant to be the username? Can I get it not to authenticate?
  • Tuesday, February 09, 2010 12:12 PMZuit Security Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer

    I didn't want to make the server a domain member (What I understood needed to happen to get authentication working) and I scoured to the edge of the earth to try to make it work with no avail.  Workaround, I simply installed bmail command line mailing utility (Free) and scheduled task to run an application.

    bmail script is like this:

    bmail -s smtpserver.tld -t recipent@contsco.com -f sender@domain.com -h -a "Alert Notice Subject" -b "xyz alert has been triggered. Microsoft task alert's via email lick balls."

     

     Thanks,

    -Brian
     

    Brian J. Brandon, CCNP

    Zuit Security Research and Defense

    Http://www.Zuit.net
    • Proposed As Answer byZuit Security Tuesday, February 09, 2010 12:12 PM
    •