wwProcess::SendErrorEmail

This method sends email to the assigned administrator. It's specialized in that the email message automatically contains status information about the currently running Web request to help pin down the problem easier.

The wwProcess::Error method for example, uses this method internally to send email to the administrator and adds code error information (Method, line, code, error message etc.).

o.SendErrorEmail(lcSubject, lcMessage, lcRecipient, lcSender)

Parameters

lcSubject
The header of the email. This header should have an easily identifiable text so you can flag and possibly sort this message into an error mail box for easy retrieval of problems on your server.

lcMessage
The body of the message. This body is appended with information about the request itself including the URL that ran the server that got hit, the client's IP address and browser.

lcRecipient
Optional - The email address of the person that is to receive the email. If not specified it defaults to the WWC_ADMINISTRATOR_EMAIL setting in wconnect.h.

lcSender
Optional - The email address of the person that's sending the message. If not specified it defaults to the WWC_ADMINISTRATOR_EMAIL setting in wconnect.h.

Remarks

This method relies on settings in wconnect.h for default values. In particular it looks at WWC_SENDEMAIL_ONERROR to determine whether email is sent at all, WWC_ADMINISTRATOR_EMAIL for whom to send mail to, and WWC_MAILSERVER for which mail server to use.

This method uses wwIPStuff::SendMailAsync behind the scenes.


See also:

Class wwProcess | wwipstuff::sendmail | wwipstuff::sendmailasync

© West Wind Technologies, 1996-2019 • Updated: 09/04/99
Comment or report problem with topic