How to change email label sent to users?

Shirley_Sharp

Active member
Registered
Joined
Jan 10, 2013
Messages
75
Points
0
Hi webmasters,

I have a PHP form and it sent an auto response email to the users who submitted my form. This works fine for me. But the problem is when the user receives the email then my host name showed on email label instead of my email or my name.
for example:
Hosting name [[email protected]]

Are there any ways to solve this?
I want my name or my real email show on email label whey they read my mail. :)
 

bob

Well-known member
Registered
Joined
Apr 22, 2014
Messages
92
Points
0
@shirley, I met the same problem in the past so I can give you my codes to solve your problem

I sure you missed the parameter in header when configure it to send email

try to use this code and compare to your codes, you will find out what you are missing

Code:
// To send HTML mail, the Content-type header must be set
$headers1  = 'MIME-Version: 1.0' . "\r\n";
$headers1 .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers1 .= 'YOUR NAME HERE <[email protected]>' . "\r\n";		
//$headers1 .= 'Cc: [email protected]'. '"\r\n"';
mail($to1, $subject1, $message1, $headers1);
//echo "Your information sent";
You only need to change YOUR NAME HERE and email address in codes above. Everything will be fine!

Hope it's useful to you :thumb:
 
Newer Threads
Latest Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top