Jump to content

simple php mail Help


geniuscapri

Recommended Posts

Hello Friends,

i have a problem. i am sending mail with mail() function.

every thing working is Good. but i have a one problem. i am sending mail with a from name XYZ but when i receive that mail in mail box there i get from name is [email protected] why is that??? and how can i hide this???

Pleas Reply.

Thanks

Link to comment
https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/
Share on other sites

Are you sending any headers?

<?php
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
   'Reply-To: [email protected]' . "\r\n" .
   'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?> 

 

http://www.php.net/manual/en/function.mail.php

Link to comment
https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489759
Share on other sites

Hello Friends,

i have a problem. i am sending mail with mail() function.

every thing working is Good. but i have a one problem. i am sending mail with a from name XYZ but when i receive that mail in mail box there i get from name is [email protected] why is that??? and how can i hide this???

Pleas Reply.

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490610
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.