I use a bcc to a specific email account. Not pretty but it works.
Here's a snippet:
/* To send HTML mail, you can set the Content-type header. */
$headers = MIME-Version: 1.0\r\n;
$headers .= Content-type: text/html; charset=iso-8859-15\r\n;
/* additional
Is there possible to log outgoing mails sent via mail() function? I need to
know, when, which script (can be path to php file on server) and receipt of
mail that was sent.
Is there possible?
Thanx.
RiGe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
RiGe wrote:
Is there possible to log outgoing mails sent via mail() function? I need to
know, when, which script (can be path to php file on server) and receipt of
mail that was sent.
Is there possible?
Not directly, unless your SMTP server is keeping a log.
Write your own wrapper function
This is something you would probably do with your e-mail server, not
with PHP. You can log all of the emails sent by your scripts by writing
a wrapper around mail though. Basically check your SMTP daemon's
documentation whether it be sendmail, qmail or something else and look
for auditing or
4 matches
Mail list logo