Send Mail fails while Build started via Task Scheduler

Hello,

I've a problem with send mail task if the build is started via windows task scheduler. If I start the build within the Finalbuilder the send mail task woks fine. Finalbuilder is version 6.2.0.1074

Any ideas?

How is it failing, what is the actual error that is logged? Which operating system are you running under? Is windows firewall turned on? Have you tried updating the latest build of FinalBuilder?

Posted By Vincent Parrett on 19 Jul 2010 04:54 AM
How is it failing, what is the actual error that is logged? Which operating system are you running under? Is windows firewall turned on? Have you tried updating the latest build of FinalBuilder?

The OS is Win2003 Server. Firewall and OS ist not the problem, because I tried all runs on the same machine. All actions ar running, except the send mail action is not running while the build is started via task scheduler.

No, I didn't tried the latest Build of Finalbuilder.

The error is:

Unable to Send Message (Connect)
Socket Error # 10061
Connection refused.

When you tested without the scheduler, did you test with the same user that the scheduler is using? Firewalls can still cause problems when tasks are run under the scheduler.

Posted By Vincent Parrett on 19 Jul 2010 05:16 AM
When you tested without the scheduler, did you test with the same user that the scheduler is using?

Yes, it's the same user.

Posted By Vincent Parrett on 19 Jul 2010 05:16 AM
Firewalls can still cause problems when tasks are run under the scheduler.

Why? I thought, this is allways the same executing process.

EDIT: The local windows firewall is not running and the smtp server (exchange) is in the same network.

Maybe we have a bigger problem in the company firewall or the company router. There is no telnet command possible to any external or internal SMTP Server.

Wonder why I can send emails when I start the Build with the Final Builder GUI...

the anti virus scanner McAfee was the problem and blocked outgoing smtp requests.

Still wondering why I can send emails when I start the Build with the Final Builder GUI...

Probably detects when you are running the program interactively vs non interactive. In our experience it’s usually the firewall or antivirus software. McAfee is one of the worst, as even when you tell it to exclude programs it still seems to get in the way.