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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.