SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
MailSend

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
MailSend
Author Message
Norm Hill



Joined: 23 Dec 2004
Posts: 7

Post MailSend Reply with quote

I have an issue where MailSend will work fine on a
server for months, then all of a sudden, it stops
working and produces a timeout failure when executing
the MailSend. And then it sends me an e-mail saying
that there was an error and it was the timeout failure
If I rebuild the server from scratch, run the same
exact script, it will work. It's just overtime,
something changes. Any idea what modules, calls, dll's
that the mailsend function is using? I am running
3.4.23. Additional info: reinstalling the app does
help.

Thu Dec 23, 2004 12:52 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

Reinstalling is definitelly too much. Restarting the server should help if the problem is on 24x7 side.
Which email interface in 24x7 do you use (MAPI, SMTP, Lotes Notes)?
Do you have your email server running on the same network/domain?

: I have an issue where MailSend will work fine on a
: server for months, then all of a sudden, it stops
: working and produces a timeout failure when executing
: the MailSend. And then it sends me an e-mail saying
: that there was an error and it was the timeout failure
: If I rebuild the server from scratch, run the same
: exact script, it will work. It's just overtime,
: something changes. Any idea what modules, calls, dll's
: that the mailsend function is using? I am running
: 3.4.23. Additional info: reinstalling the app does
: help.

Thu Dec 23, 2004 1:16 pm View user's profile Send private message
Norm Hill



Joined: 23 Dec 2004
Posts: 7

Post Re: MailSend Reply with quote

We use the SMTP interface. The Exchange 2003 server is on
on the same LAN as the server with the 24x7 issue.
: Reinstalling is definitelly too much. Restarting the server should help if
: the problem is on 24x7 side.
: Which email interface in 24x7 do you use (MAPI, SMTP, Lotes Notes)?
: Do you have your email server running on the same network/domain?

Thu Dec 23, 2004 10:03 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

I guess the email in MailSend is not yours. Maybe there is a problem with the recipient's email server (slow, not available, ????) That's why when MailSend timeouts it can still send an error massage email to you.

I would like to suggest implementing mail retry options. Here is an example how this can be done.

Dim Count, Number, 4
Dim LastError, String

RETRY:
Subtruct Count, 1, Count
If Count, TRY_IT, REPORT_ERROR

TRY_IT:
OnErrorGoTo RETRY
Wait 10
MailSend .... recipient and message parameters here ...
Exit

REPORT_ERROR:
GetLastError LastError
RaiseError LastError

: We use the SMTP interface. The Exchange 2003 server is on
: on the same LAN as the server with the 24x7 issue.

Thu Dec 23, 2004 11:31 pm View user's profile Send private message
Norm Hill



Joined: 23 Dec 2004
Posts: 7

Post Re: MailSend Reply with quote

The mail destination is a mailbox on that local
exchange server. It is a job completion message
for the administrators of the SQL Servers. The error
simply said that there was an error on Line 366: Timeout
and Line 366 is the MailSend command. It has worked
on this server before. It just all of a sudden stopped
working. Could you please tell me what dll's this
command is referencing so that I can replace them
and see if that fixes the problem?

: I guess the email in MailSend is not yours. Maybe there is a problem with the
: recipient's email server (slow, not available, ????) That's why when
: MailSend timeouts it can still send an error massage email to you.

: I would like to suggest implementing mail retry options. Here is an example
: how this can be done.

: Dim Count, Number, 4
: Dim LastError, String

: RETRY: Subtruct Count, 1, Count
: If Count, TRY_IT, REPORT_ERROR

: TRY_IT: OnErrorGoTo RETRY
: Wait 10
: MailSend .... recipient and message parameters here ...
: Exit

: REPORT_ERROR: GetLastError LastError
: RaiseError LastError

Fri Dec 24, 2004 10:28 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: MailSend Reply with quote

It uses 24x7ws.dll, but replacing DLL is not going to help. This is not a file problem! The very same DLL is used to send you the job error.

Another suggestion that I have is to set the job to run detached.

: The mail destination is a mailbox on that local
: exchange server. It is a job completion message
: for the administrators of the SQL Servers. The error
: simply said that there was an error on Line 366: Timeout
: and Line 366 is the MailSend command. It has worked
: on this server before. It just all of a sudden stopped
: working. Could you please tell me what dll's this
: command is referencing so that I can replace them
: and see if that fixes the problem?

Fri Dec 24, 2004 11:08 am View user's profile Send private message
Norm Hill



Joined: 23 Dec 2004
Posts: 7

Post Re: MailSend Reply with quote

I do run the job detached. What does MailSend not work
and the regular job error message from 24x7 work?

: It uses 24x7ws.dll, but replacing DLL is not going to help. This is not a
: file problem! The very same DLL is used to send you the job error.

: Another suggestion that I have is to set the job to run detached.

Fri Dec 24, 2004 10:51 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.