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 headers */ $headers .= "From: $COMPANY_INFORMAL_NAME <$COMPANY_SALES_EMAIL>\r\n"; // Keep a copy"; $headers .= "Bcc: $COMPANY_SALES_EMAIL\r\n"; /* and now mail it */ return ( mail($to, $subject, $message, $headers) ); HTH Nick On Sunday 03 Aug 2003 9:46 pm, 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? > > Thanx. > > RiGe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php