<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #805: Parrot: PHP mail function not sending email</title>
    <link>http://localhost:8080/trac/ticket/805</link>
    <description>&lt;p&gt;
hi, am using the wordpress / PHP mail function to send registration emails in IIRS.
&lt;/p&gt;
&lt;p&gt;
The system works fine on my &lt;a class="missing wiki"&gt;BlueHost?&lt;/a&gt; server, and also on my laptop but the email does not send on Parrot.
&lt;/p&gt;
&lt;p&gt;
any ideas why?
&lt;/p&gt;
&lt;p&gt;
Here is the headers and code:
From: "Parrot" &amp;lt;annesley@…&amp;gt;
Content-Type: text/html; charset=UTF-8
&lt;/p&gt;
&lt;p&gt;
wp_mail( $email_address, $subject, $body, $all_headers );
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/805</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 07 Nov 2014 10:22:56 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/805#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/805#comment:1</guid>
      <description>
        &lt;p&gt;
Other sites are sending emails fine, you should be able to test that your site can send email by asking for a password reset?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 07 Nov 2014 10:30:36 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/805#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/805#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I can't see any issues in the maillog, the error log for your site and I can't find the code you posted above via a recursive grep.
&lt;/p&gt;
&lt;p&gt;
I created the following file at &lt;a class="ext-link" href="http://annesley.parrot.transitionnetwork.org/chris.php"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://annesley.parrot.transitionnetwork.org/chris.php&lt;/a&gt;
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;?php
//define the receiver of the email
$to = 'chris@webarchitects.co.uk';
//define the subject of the email
$subject = 'Test email';
//define the message to be sent. Each line should be separated with \n
$message = "Hello World!\n\nThis is my first mail.";
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: annesley@annesley.parrot.transitionnetwork.org\r\nReply-To: chris@webarchitects.co.uk";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed"
echo $mail_sent ? "Mail sent" : "Mail failed";
?&amp;gt;
&lt;/pre&gt;&lt;p&gt;
Visited it and it sent me a email and there were no issues in the maillog.
&lt;/p&gt;
&lt;p&gt;
Can you check you code?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 07 Nov 2014 10:53:30 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/805#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/805#comment:3</guid>
      <description>
        &lt;p&gt;
I also notice your site has the &lt;a class="ext-link" href="http://shop.webaware.com.au/downloads/disable-emails/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Disable Emails&lt;/a&gt; plugin installed -- could this be the cause?
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Stop a &lt;a class="wiki" href="http://localhost:8080/trac/wiki/WordPress"&gt;WordPress&lt;/a&gt; website from sending any emails using the standard &lt;a class="ext-link" href="http://codex.wordpress.org/Function_Reference/wp_mail"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;wp_mail()&lt;/a&gt; function. No emails will be sent, not even for password resets or administrator notifications.
&lt;/p&gt;
&lt;/blockquote&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 07 Nov 2014 11:05:02 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/805#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/805#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have just checked (via &lt;a class="ext-link" href="http://brakertech.com/disable-enable-wordpress-plugin-command-line/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://brakertech.com/disable-enable-wordpress-plugin-command-line/&lt;/a&gt;) and found that the ​Disable Emails plugin is enabled -- I expect this might be the cause?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>annesley</dc:creator>

      <pubDate>Fri, 07 Nov 2014 12:40:52 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/805#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/805#comment:5</guid>
      <description>
        &lt;p&gt;
thanks chris! that solved it. impressively stupid of me :)
&lt;/p&gt;
&lt;p&gt;
sorry to have bothered you there!
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>annesley</dc:creator>

      <pubDate>Fri, 07 Nov 2014 12:41:06 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/805#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/805#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>