Link to home
Start Free TrialLog in
Avatar of GracefBase
GracefBaseFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Sending an email alert using task scheduler Windows server 2008R2 Fails error 2147746321

Hi experts,
This problem is driving me mad - I am trying to get the server to send me an email when an event for backup is logged in the event viewer.  I've set everything up but when I run this from task scheduler it fails with the above error.  
I've tried telnetting to the SMTP server I want to use and this works.  What is the format for the SMTP server?  I've googled and not really got anywhere.
so I've put sender - my email address
receiver - my email address, smtp server as the internal IP address of the email server.  I had a similar thing set up on another server like this and it worked fine.  
Please help!
Thanks
Grace
Avatar of Aeriden
Aeriden
Flag of United States of America image

It is my understanding that Windows 2008 and 2008 R2 task manager will only send authenticated email messages.  The sending SMTP server (you are contacting) needs to be setup to accept authentication and the sending email address must be the address that is doing the authentication must be running the task.
Avatar of GracefBase

ASKER

So if the email server is not exchange it won't work then?
I have Mailer daemon.  I set up the same email address in the email field on the user that is running the task but that didnt help.
Thanks
SOLUTION
Avatar of Aeriden
Aeriden
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've done a workaround which is to send an email using a script if the original email fails using Blat which I found on another site.  This has now worked.  Thanks for your help and comments.