troubleshooting Question

PHP Mail error

Avatar of Robert Granlund
Robert GranlundFlag for United States of America asked on
PHP
3 Comments2 Solutions129 ViewsLast Modified:
I am sending PHP mail but I am getting an error from the server and the emails are being Quarantined.

Here is what I have:
<?php
$headers = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-Type: text/html; charset=UTF-8' . "\r\n";
		
	$headers .= 'To: '.$to."\r\n";
	$headers .= 'From: '.$from."\r\n".' Return-Path: '.$from."\r\n";
	
	@mail($to, $subject, $message, $headers);
These are two of the errors.  Please look at the return path.
Console_2017-03-08_15-15-17.png
Console_2017-03-08_15-21-41.png
SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros