Jump to content

mail() issue


Walker33

Recommended Posts

I have a form on my web page on a Windows server.  I'm trying to send a simple email.  My email server is on a different Linux server.  That Linux server has seven different email accounts tied into into it.  Whenever the "to" address resovles to one of the addresses on the Linux server, I receive the email just fine, but if it tries to send it to any other email address outside that Linux server (gmail or yahoo or whatever), I never recieve it.  Not sure what to do.

 

<?php
// Sending email to person requesting free trial
$to = $Email;
$headers = "From: support@company.net\r\n" .
    "";
$subject = "Your Trial";
$body = "$Name,

Thank you for requesting a free, 15-day trial!";
mail($to, $subject, $body, $headers);

?>

 

Thanks for any help!

Link to comment
https://forums.phpfreaks.com/topic/220960-mail-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.