Page 2 of 3

Re: Simple Error Handling - 2

Posted: Thu Aug 02, 2012 12:07 pm
by mol
Nice work!
In my project, I've added sending e-mail message with error info.

hb_SendMail( cServer, nPort, cFrom, xTo, xCC, xBCC, cBody, cSubject, aFiles, cUser, cPass, cPopServer,;
nPriority, lRead, bTrace, lPopAuth, lNoAuth, nTimeOut, cReplyTo, lTLS, cSMTPPass, cCharset, cEncoding )

when parameters are:
cServer -> Required. IP or domain name of the mail server
nPort -> Optional. Port used my email server
cFrom -> Required. Email address of the sender
xTo -> Required. Character string or array of email addresses to send the email to
xCC -> Optional. Character string or array of email adresses for CC (Carbon Copy)
xBCC -> Optional. Character string or array of email adresses for BCC (Blind Carbon Copy)
cBody -> Optional. The body message of the email as text, or the filename of the HTML message to send.
cSubject -> Optional. Subject of the sending email
aFiles -> Optional. Array of attachments to the email to send
cUser -> Required. User name for the POP3 server
cPass -> Required. Password for cUser
cPopServer -> Required. POP3 server name or address
nPriority -> Optional. Email priority: 1=High, 3=Normal (Standard), 5=Low
lRead -> Optional. If set to .T., a confirmation request is send. Standard setting is .F.
bTrace -> Optional. If set to .T., a log file is created (smtp-<nNr>.log). Standard setting is NIL.
If a block is passed, it will be called for each log event with the message a string, no param on session close.
lPopAuth -> Optional. Do POP3 authentication before sending mail.
lNoAuth -> Optional. Disable Autentication methods
nTimeOut -> Optional. Number os ms to wait default 20000 (20s)
cReplyTo -> Optional.

Re: Simple Error Handling - 2

Posted: Thu Aug 02, 2012 12:38 pm
by esgici
mol wrote: In my project, I've added sending e-mail message with error info.

hb_SendMail( cServer, nPort, cFrom, xTo, xCC, xBCC, cBody, cSubject, aFiles, cUser, cPass, cPopServer,;
nPriority, lRead, bTrace, lPopAuth, lNoAuth, nTimeOut, cReplyTo, lTLS, cSMTPPass, cCharset, cEncoding )
Thanks Mol :)

--

Esgici

Re: Simple Error Handling - 2

Posted: Fri Aug 03, 2012 9:10 pm
by Dilip Patel
Hi Esgici,
It would be nice if MOL's sendmail routine is added to the errorsys program.
Regards,
Dilip

Re: Simple Error Handling - 2

Posted: Fri Aug 03, 2012 10:10 pm
by esgici
Hi Dilip
Dilip Patel wrote: It would be nice if MOL's sendmail routine is added to the errorsys program.
You are right.

Sadly I haven't any experience about send-mail.

Since "Simple Error Handling - 2" is fully open, anyone experienced on send-mail, may add send-mail feature to it.

Otherwise if anyone will send a simple and working example for send-mail, we can work to try.

Regards

Re: Simple Error Handling - 2

Posted: Fri Aug 17, 2012 9:53 pm
by esgici
Hi All

This is the second version of Simple Error Handling - 2.

Something changed ( details in description.txt file ).

Happy HMG'ing :D
SEH2.zip
Simple Error Handling - 2.2 Source files
(60.91 KiB) Downloaded 560 times
Simple Error Handling - 2.2 Screenshoot
Simple Error Handling - 2.2 Screenshoot
SEH2.JPG (52.22 KiB) Viewed 5960 times

Re: Simple Error Handling - 2

Posted: Sat Aug 18, 2012 3:44 am
by Rathinagiri
Thanks a lot Esgici. :)

Re: Simple Error Handling - 2

Posted: Sat Aug 18, 2012 2:05 pm
by srvet_claudio
Wow :!: , very nice and very useful.
Best regards,
Claudio

Re: Simple Error Handling - 2

Posted: Tue Jul 14, 2015 8:27 pm
by danielmaximiliano
Gracias por compartir Esgici ...


Thanks for sharing Esgici ...

Re: Simple Error Handling - 2

Posted: Tue Jul 14, 2015 8:41 pm
by luisvasquezcl
Great job Esgici, and Mol good idea.
Best regards,

Re: Simple Error Handling - 2

Posted: Tue Jul 14, 2015 9:45 pm
by EduardoLuis
Master Esgici: Woh, Woh, Woh, what a usefull tool
Congratulations, and thanks for share with us.
With regards.