I'm using the mail function as follows:
mail($emailto, $subject, $body, $headers);
mail('[email protected]', $subject.' / '.$emailto, $body, $headers);
The first is intended for the enduser. The second copy is for me for record keeping purposes.
Soometimes the enduser specifies their email address, other times its blank.
- When an email address is specified, the end user actuallys gets the email without any problem
- However, no email gets sent to [email protected] in EITHER case - I've checked the spam folders as well.
In my /mail/new folder I see many FILES created similar to the below. The error is incorrect as [email protected] is a VALID email address (setup using google for domains).
Return-path: <> Envelope-to: [email protected] Delivery-date: Mon, 28 Jun 2010 12:37:28 -0400 Received: from mailnull by myhostingprovider.com with local (Exim 4.69) id UNIQUEIDZ-7x for [email protected]; Mon, 28 Jun 2010 12:37:28 -0400 X-Failed-Recipients: [email protected] Auto-Submitted: auto-replied From: Mail Delivery System <[email protected]> To: [email protected] Subject: Mail delivery failed: returning message to sender Message-Id: <[email protected]> Date: Mon, 28 Jun 2010 12:37:28 -0400 This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [email protected] No Such User Here ------ This is a copy of the message, including all the headers. ------ Return-path: <[email protected]> Received: from nobody by myhostingprovider.com with local (Exim 4.69) (envelope-from <[email protected]>) id UNIQUEIDV-6b for [email protected]; Mon, 28 Jun 2010 12:37:28 -0400 To: [email protected] Subject: mysite.com: SUBJECT / [email protected] X-PHP-Script: www.mysite.com/mysitescript.php for IPADDRESS MIME-Version: 1.0 Content-type: text/html; charset=UTF-8 From: mysite.com Service <[email protected]> Message-Id: <[email protected]> Date: Mon, 28 Jun 2010 12:37:28 -0400