Jump to content

Problem with mail function


drtanz

Recommended Posts

Hi i am using the mail() function to send emails and I have declared a header parameter. The problem is that the space between 'My' and 'Company' is not shown in the From area when i receive the email in my inbox. So the From is displayed as MyCompany instead of My Company.

 

Here is the code:

 

//set email headers
$headers = "From: My Company";

//send it
$mailSent = mail($to, $subject, $message, $headers);
}

Link to comment
https://forums.phpfreaks.com/topic/131676-problem-with-mail-function/
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.