Jump to content

Sending emails issue


EchoFool

Recommended Posts

Hey,

When ever usesr recieve an email from my server their email shows:

 

From:  Nobody (nobody@server.domain.com)     
         

 

Why is this? Other companies and sites don't get this problem i wanted it to show my Business Name so it was easy to identify :(

 

My script for the mail sent is:

 

$subject = "Notification";
$headers = 'Content-type: text/html; charset=UTF-8';
$message = "Your account has changed its email! <br><br>All emails will now be directed to this email: <b>$EmailTemp</b> <br><br>Thanks";
mail($EmailTemp, $subject, $message, $headers);

 

What did i get wrong? Or more like what did i miss ?

Link to comment
Share on other sites

www.php.net/mail

 

Your header information is not set:

$headers = 'From: [email]webmaster@example.com[/email]' . "\r\n" .
    'Reply-To: [email]webmaster@example.com[/email]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

 

 

With that does that mean i cannot use $headers = 'Content-type: text/html; charset=UTF-8'; ?

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.