Dick, assuming R:Mail 9.5:
I'm not sure how to check the connection _before_ sending; if there is,
I'd like to know about it.
I use the following to check for errors after sending; it's an
adaptation of the examples in the RMail 9.5 help documentation (so I get
a low score for originality).
I'm not sure if this will prevent R:Base from hanging if there is no
INet connection.
*(PLUGIN RMail preliminary code here)
PLUGIN RMail v1|Send
IF v1 <> 'OK' THEN *(Email was not successful)
SET VAR vError = .v1
*(error handling follows)
PAUSE 3 USING .vError CAPTION 'Info' ICON Serious
PLUGINS RMail v1|HIDE PROGRESS
PLUGINS RMail v1|WAIT 1000
*(I cursor through a table & save the error; do what you need to do)
UPDATE [TableOfEmailAddrs] +
SET EMailStatus = .v1 +
WHERE CURRENT OF C1
CLS
GOTO NextEmail
ELSE
SET VAR v1 = ('Message sent ' + .v1 + '!') *(EMail sent ok)
PAUSE 3 USING .v1 CAPTION 'Info' ICON CONFIRM
PLUGINS RMail v1|HIDE PROGRESS
PLUGINS RMail v1|WAIT 1000
*(I cursor through a table)
UPDATE [TableOfEmailAddrs] +
SET EMailStatus = .v1 +
WHERE CURRENT OF C1
CLS
ENDIF
Doug
On 6/3/2014 5:52 PM, Dick Fey wrote:
We have had intermittent outages of our internet connection all day.
Rbase automatically sends customers invoices and ship-notices via email.
Several times today R:base hung up because it could not make a
connection to the internet.
Is there any way to have Rbase check for a good connection before
initiating these e-mails ?
I'm hoping.
Dick Fey
Carpet Broker Inc.
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com