sendemail only runs from cmd launched from scheduler?!
Posted: 19 Sep 2014 19:19
I have a program called sendemail
There are two versions one with something called 'TLS' and one without.
I want the 'TLS' one. That's here
http://caspian.dotconf.net/menu/Softwar ... l-v156.zip
I am running sendemail.exe from that zip.
And I have two command prompts open. Both have the same value for %PATH%
One command prompt, is opened via this technique mentioned by aGerman that involves task scheduler.
viewtopic.php?f=3&t=5443
and it works amazingly well. (much appreciated).
The other command prompt, I open it clicking the orb and right clicking cmd and clicking run as administrator.
I run sendemail.exe
1,531,966 sendEmail.exe
I called it sendemailtls.exe but that doesn't affect things
C:\blah>dir
20/09/2014 01:05 AM 1,531,966 sendemailtls.exe
C:\blah>
When I run it from the task scheduler command prompt, it works fine.
When I run it from a regular command prompt run as administrator, I get some funny error popup msgbox that says "The ordinal 132 could not be located in the dynamic link library SSLEAY32.dll"
The developer mentions this in his FAQ
"
Q: I'm using the Windows version of sendEmail, and I get the error message "the ordinal 2586 could not be located in the dynamic link libraby LIBEAY32.dll", what do I do?
A: I don't know why this happens, but you can fix it by downloading the "No TLS Support" version of sendEmail. You won't be able to send email through an SMTP server that requires encryption, but it won't give you that error message."
I want the TLS version though.
What the developer perhaps doesn't know, is it works in the cmd prompt launched via task scheduler, in the method mentioned by aGerman, works.
I am wondering why that might be.
I am running win7 ultimate 64bit.
Perhaps there is some kind of privilege that the command prompt generated by task scheduler has, that the regular command prompt does not, but I can't put my finger on what it is, any ideas?
And what are the differences between the environment of each command prompt?
There are two versions one with something called 'TLS' and one without.
I want the 'TLS' one. That's here
http://caspian.dotconf.net/menu/Softwar ... l-v156.zip
I am running sendemail.exe from that zip.
And I have two command prompts open. Both have the same value for %PATH%
One command prompt, is opened via this technique mentioned by aGerman that involves task scheduler.
viewtopic.php?f=3&t=5443
and it works amazingly well. (much appreciated).
The other command prompt, I open it clicking the orb and right clicking cmd and clicking run as administrator.
I run sendemail.exe
1,531,966 sendEmail.exe
I called it sendemailtls.exe but that doesn't affect things
C:\blah>dir
20/09/2014 01:05 AM 1,531,966 sendemailtls.exe
C:\blah>
When I run it from the task scheduler command prompt, it works fine.
When I run it from a regular command prompt run as administrator, I get some funny error popup msgbox that says "The ordinal 132 could not be located in the dynamic link library SSLEAY32.dll"
The developer mentions this in his FAQ
"
Q: I'm using the Windows version of sendEmail, and I get the error message "the ordinal 2586 could not be located in the dynamic link libraby LIBEAY32.dll", what do I do?
A: I don't know why this happens, but you can fix it by downloading the "No TLS Support" version of sendEmail. You won't be able to send email through an SMTP server that requires encryption, but it won't give you that error message."
I want the TLS version though.
What the developer perhaps doesn't know, is it works in the cmd prompt launched via task scheduler, in the method mentioned by aGerman, works.
I am wondering why that might be.
I am running win7 ultimate 64bit.
Perhaps there is some kind of privilege that the command prompt generated by task scheduler has, that the regular command prompt does not, but I can't put my finger on what it is, any ideas?
And what are the differences between the environment of each command prompt?