PHP Mail error, tried sendmail, mailx, postfix


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>


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I go through this algorithm and it solves my problem, I am totally agree with your idea.

This comment has been deleted