Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP mail function does not send email to valid account on same domain
    text
    copied!<p>I'm using the mail function as follows:</p> <pre><code>mail($emailto, $subject, $body, $headers); mail('askme@mysite.com', $subject.' / '.$emailto, $body, $headers); </code></pre> <p>The first is intended for the enduser. The second copy is for me for record keeping purposes.</p> <p>Soometimes the enduser specifies their email address, other times its blank.</p> <ol> <li>When an email address is specified, the end user actuallys gets the email without any problem</li> <li>However, no email gets sent to askme@example.com in EITHER case - I've checked the spam folders as well.</li> </ol> <p>In my /mail/new folder I see many FILES created similar to the below. The error is incorrect as askme@mysite.com is a VALID email address (setup using google for domains).</p> <blockquote> <pre><code> Return-path: &lt;&gt; Envelope-to: myuserid@myhostingprovider.com 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 myuserid@myhostingprovider.com; Mon, 28 Jun 2010 12:37:28 -0400 X-Failed-Recipients: askme@mysite.com Auto-Submitted: auto-replied From: Mail Delivery System &lt;Mailer-Daemon@myhostingprovider.com&gt; To: myuserid@myhostingprovider.com Subject: Mail delivery failed: returning message to sender Message-Id: &lt;EUNIQUEIDZ-7x@myhostingprovider.com&gt; 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: askme@mysite.com No Such User Here ------ This is a copy of the message, including all the headers. ------ Return-path: &lt;myuserid@myhostingprovider.com&gt; Received: from nobody by myhostingprovider.com with local (Exim 4.69) (envelope-from &lt;myuserid@myhostingprovider.com&gt;) id UNIQUEIDV-6b for askme@mysite.com; Mon, 28 Jun 2010 12:37:28 -0400 To: askme@mysite.com Subject: mysite.com: SUBJECT / enduser@gmail.com 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 &lt;askme@mysite.com&gt; Message-Id: &lt;EUNIQUEIDV-6b@myhostingprovider.com&gt; Date: Mon, 28 Jun 2010 12:37:28 -0400 </code></pre> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload