Simple Error Handling - 2

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Simple Error Handling - 2

Post 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.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Simple Error Handling - 2

Post 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
Viva INTERNATIONAL HMG :D
Dilip Patel
Posts: 31
Joined: Tue Aug 17, 2010 6:01 am

Re: Simple Error Handling - 2

Post by Dilip Patel »

Hi Esgici,
It would be nice if MOL's sendmail routine is added to the errorsys program.
Regards,
Dilip
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Simple Error Handling - 2

Post 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
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Simple Error Handling - 2

Post 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 514 times
Simple Error Handling - 2.2 Screenshoot
Simple Error Handling - 2.2 Screenshoot
SEH2.JPG (52.22 KiB) Viewed 5410 times
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Simple Error Handling - 2

Post by Rathinagiri »

Thanks a lot Esgici. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Simple Error Handling - 2

Post by srvet_claudio »

Wow :!: , very nice and very useful.
Best regards,
Claudio
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Simple Error Handling - 2

Post by danielmaximiliano »

Gracias por compartir Esgici ...


Thanks for sharing Esgici ...
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Simple Error Handling - 2

Post by luisvasquezcl »

Great job Esgici, and Mol good idea.
Best regards,
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: Simple Error Handling - 2

Post by EduardoLuis »

Master Esgici: Woh, Woh, Woh, what a usefull tool
Congratulations, and thanks for share with us.
With regards.
Post Reply