troubleshooting Question

What's wrong with this email script?

Avatar of Bruce Gust
Bruce GustFlag for United States of America asked on
PHP
7 Comments4 Solutions237 ViewsLast Modified:
This code works fine on my server, but when I take it over to my client's server, while there are no errors, no email is delivered. What am I missing?

<?php
$from_email="bruce@brucegust.com";
$to = "bruce@brucegust.com";
$subject = "test";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "From:";
$headers .= $from_email;
$headers .=  "\r\n";
$message = "awesome";
mail($to, $subject , $message, $headers);

echo "done";
?>
ASKER CERTIFIED SOLUTION
ysre

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 4 Answers and 7 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 4 Answers and 7 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