How to change email label sent to users?

Shirley_Sharp

New member
Joined
Jan 10, 2013
Messages
228
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

New member
Joined
Apr 22, 2014
Messages
203
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
Replies
6
Views
4,160
Replies
27
Views
14,037
Replies
25
Views
12,117
Replies
9
Views
9,529
Latest threads
Recommended threads
Replies
94
Views
26,738
Replies
6
Views
4,078
Replies
3
Views
3,465

Referral contests

Referral link for :

Sponsors

Popular tags

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