PHP Mail error, tried sendmail, mailx, postfix

July 23, 2015 1.9k views
PHP Email CentOS


i use CentOS Droplet with NGINX and i tried this tutorial:

but i failed with error.

i tried to use sendmail config
but it did nothing, i have been waiting but no response so i ^C

Would you please help me to configure it
so i can use php mail() function to works on all my domains on the droplets?

Thank You

ERROR OUTPUT at /var/spooler/mail/
From MAILER-DAEMON@FROZENFIRE  Thu Jul 23 22:40:20 2015
Received: from localhost (localhost)
    by FROZENFIRE (8.14.7/8.14.7) id t6NFeKJ6021755;
    Thu, 23 Jul 2015 22:40:20 +0700
Date: Thu, 23 Jul 2015 22:40:20 +0700
From: Mail Delivery Subsystem <MAILER-DAEMON@FROZENFIRE>
Message-Id: <201507231540.t6NFeKJ6021755@FROZENFIRE>
To: <apache@FROZENFIRE>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message


The original message was received at Thu, 23 Jul 2015 22:40:19 +0700

   ----- The following addresses had permanent fatal errors -----
    (reason: 501 Syntax error in parameters or arguments)

   ----- Transcript of session follows -----
... while talking to
>>> MAIL From:<apache@FROZENFIRE> SIZE=768
<<< 501 Syntax error in parameters or arguments
501 5.6.0 Data format error

Content-Type: message/delivery-status

Reporting-MTA: dns; FROZENFIRE
Arrival-Date: Thu, 23 Jul 2015 22:40:19 +0700

Final-Recipient: RFC822;
Action: failed
Status: 5.5.2
Diagnostic-Code: SMTP; 501 Syntax error in parameters or arguments
Last-Attempt-Date: Thu, 23 Jul 2015 22:40:20 +0700

Content-Type: message/rfc822

Return-Path: <apache@FROZENFIRE>
    by FROZENFIRE (8.14.7/8.14.7) with ESMTP id t6NFeJJ6021753
    for <>; Thu, 23 Jul 2015 22:40:19 +0700
Received: (from apache@localhost)
    by FROZENFIRE (8.14.7/8.14.7/Submit) id t6NFeJpv021720;
    Thu, 23 Jul 2015 22:40:19 +0700
Date: Thu, 23 Jul 2015 22:40:19 +0700
Message-Id: <201507231540.t6NFeJpv021720@FROZENFIRE>
Subject: Hii
X-PHP-Originating-Script: 0:tm.php
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1
From: Team <";>">

        <tr><td> Hello ,</td></tr>
        <tr><td> Some Text </td></tr>
        <tr><td> Some Text </td></tr>
        <tr><td> Some Text </td></tr>
        <tr><td> Some Text </td></tr>

3 Answers

I have error in php mail. I failed to solve it. Need yahoo related solution we are here to give you best advice for every related problem of yahoo web [ ](http://)

Yes I was also facing the same issue and then I talk to php support team and they said that it was updated issue and after few time issue was resolved automatically and I hope your problem is also resolved. For any quicken software related issue visit and get the solution.

Have another answer? Share your knowledge.