geniuscapri Posted March 11, 2008 Share Posted March 11, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/ Share on other sites More sharing options...
lemmin Posted March 11, 2008 Share Posted March 11, 2008 Did you set the sendmail_from variable? http://www.php.net/manual/en/ref.mail.php Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489748 Share on other sites More sharing options...
geniuscapri Posted March 11, 2008 Author Share Posted March 11, 2008 Yes . already told there. every thing is fine. i have just problem with from name. from name also going but with my host name. i want to skip host name from name. Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489753 Share on other sites More sharing options...
geniuscapri Posted March 11, 2008 Author Share Posted March 11, 2008 no any body know ????? ??? Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489758 Share on other sites More sharing options...
lemmin Posted March 11, 2008 Share Posted March 11, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489759 Share on other sites More sharing options...
geniuscapri Posted March 11, 2008 Author Share Posted March 11, 2008 yes i am using header $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: $from" . "\r\n"; Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489762 Share on other sites More sharing options...
lemmin Posted March 11, 2008 Share Posted March 11, 2008 Could you post some code of your form and the mail function? Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489767 Share on other sites More sharing options...
geniuscapri Posted March 11, 2008 Author Share Posted March 11, 2008 hello what happen no any one know about it. i thought here comes developers. But.. Pleas Help if any one know. Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-489780 Share on other sites More sharing options...
geniuscapri Posted March 12, 2008 Author Share Posted March 12, 2008 any PHP Developer here??? Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490607 Share on other sites More sharing options...
geniuscapri Posted March 12, 2008 Author Share Posted March 12, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490610 Share on other sites More sharing options...
glndsouza Posted March 12, 2008 Share Posted March 12, 2008 hi friends i am trying to send mail through but its dosen go to my mail id Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490614 Share on other sites More sharing options...
geniuscapri Posted March 12, 2008 Author Share Posted March 12, 2008 ??? Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490622 Share on other sites More sharing options...
haku Posted March 12, 2008 Share Posted March 12, 2008 Some hosts require that the 'from' address be a real address. So if that address doesn't exist, you will have to create it. Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490629 Share on other sites More sharing options...
geniuscapri Posted March 12, 2008 Author Share Posted March 12, 2008 how??????????????????????????????????????? :'( Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490636 Share on other sites More sharing options...
haku Posted March 12, 2008 Share Posted March 12, 2008 Talk to the webmaster of your host. If you are the webmaster, then go into the control panel of your server. If you can't figure that out, then call your host. Quote Link to comment https://forums.phpfreaks.com/topic/95658-simple-php-mail-help/#findComment-490640 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.