connection closed gracefully

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

connection closed gracefully

Post by rblack » Sun Jun 03, 2012 8:10 pm

hello,

i use macro sheduler for some complicated operations, and when there is a problem i use the build-in smtp functions to send me a screenshot. Unfortunately recently the SMTP functions are hanging the script totally, like a modal message. Here is the error that i sometimes see:

Image
http://desmond.imageshack.us/Himg337/sc ... es=landing

Probably the message appears when there is a problem with the internet connection.
how to disable this error popup in MacroSheduler?

I have let>ignoreerrors=1 but it doesnt help.
I use MS11.1.17

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Jun 04, 2012 5:03 am

For a similar FTP problem this help from Marcus seemed to correct the problem:
"Set IGNOREERRORS to 1 and look at the individual return vars, e.g. FTP_RESULT for the FTP functions." (See the full posting here: http://www.mjtnet.com/forum/ms-msg-conn ... t6420.html )

So, you might want to try:
Set IGNOREERRORS to 1 and look at the individual return vars, e.g. Look at the SMTP functions and variables.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

Post by rblack » Mon Jun 04, 2012 8:08 pm

ok thanks, i will put the following catch to solve this

Code: Select all

   let>SMTP_TIMEOUT=5000
   
SMTPSendMail>[here goes my smtp parameters]

    if>SMTP_RESULT is different than 250
    goto end
    endif
sorry for the strange if condition, but on this forum i cant post and go to end in the next line, because its wiped out from the post (?).

at the end the script will go to the beginning and try to do his job again.

will see if it works :)

rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

Post by rblack » Fri Aug 03, 2012 7:18 pm

unfortunately the problem persists, especially when sending email while the internet connection breaks. Then the script which is supposed to run 24/7 on a dedicated server just stops and must be reset manually.

Does the newest version of Macro Scheduler solves this problem?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts