Re: Blat doesn't send email when run from Windows scheduler
| Newsgroups | gmane.mail.blat |
|---|---|
| Message-ID | <1C98C051185B41069C64A2FA2EA719A4@chip> |
> Can you please help me on a BLAT issue ? I have a batch file where I use > BLAT utility to send emails using SMTP server. When I run same batch file > from a dos shell manually, the email is sent properly. But when I schedule > the batch file to run from Windows task scheduler, the BLAT doesn't send > any email. > > I am using Windows 7 and the BLAT version is: > > Blat v3.2.19 (build : Nov 18 2017 03:14:35) 32-bit Windows, Full, Unicode My first guess is that Blat is not in your search path, and that you might need to specify the full path to blat.exe in your task scheduler, plus the full path to any files being used. My second guess is that you do not have the SMTP server configuration saved for all users to access in the registry. When Windows scheduler runs, it may run as the user account named "administrator" rather than as you. If you stored the Blat server configuration using the -hkcu option, or if Blat was forced to store the information under the registry tree Computer\HKEY_CURRENT_USER, then this information may not be available to the Blat invocation from Windows scheduler. This can be checked by opening regedit.exe, and searching for "Public Domain". Ideally, you want to find "Public Domain" listed under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node (if using 64-bit Windows), or Computer\HKEY_LOCAL_MACHINE\SOFTWARE (if using 32-bit Windows). If you need to use 3rd party services for SSL/TLS encryption, such as stunnel from stunnel.org, then make sure this 3rd party service is always running. If it is not running when your schedule task begins, then this would prevent Blat from running. Chip