edontee Posted August 19, 2008 Share Posted August 19, 2008 whenever i send mail from my script, the header shows sender as from [email protected]. Recently, my host disabled sending mail from 'nobody'. Please how do i change the nobody? this is the sample header Return-Path: <[email protected]> Authentication-Results: mta307.mail.re4.yahoo.com from=seun.web4africa.net; domainkeys=neutral (no sig) Received: from 208.101.53.50 (EHLO seun.web4africa.net) (xxx.xxx.xx.xx) by mta307.mail.re4.yahoo.com with SMTP; Fri, 15 Aug 2008 01:57:39 -0700 Received: from nobody by seun.web4africa.net with local (Exim 4.69) (envelope-from <[email protected]>) id 1KTuZq-0000oe-23 for [email protected]; Fri, 15 Aug 2008 08:22:30 +0000 To: [email protected] Subject: xxxxxx From: [email protected] View contact details Message-Id: <[email protected]> Sender: Nobody <[email protected]> Date: Fri, 15 Aug 2008 08:22:30 +0000 Content-Length: 276 I replaced some sensitive info with xxx for security reason. I bolded the major areas I want to learn how to change. Link to comment https://forums.phpfreaks.com/topic/120441-nobodymyservernamecom-help/ Share on other sites More sharing options...
lemmin Posted August 19, 2008 Share Posted August 19, 2008 Can you show your code for sending the mail? Link to comment https://forums.phpfreaks.com/topic/120441-nobodymyservernamecom-help/#findComment-620596 Share on other sites More sharing options...
edontee Posted August 20, 2008 Author Share Posted August 20, 2008 mail("$email","$subject","$message","From: $s_mail\nX-Mailer: PHP/ . $phpversion()", "-f $s_mail"); Link to comment https://forums.phpfreaks.com/topic/120441-nobodymyservernamecom-help/#findComment-620903 Share on other sites More sharing options...
lemmin Posted August 20, 2008 Share Posted August 20, 2008 Does the X-Mailer header show up anywhere in the properties of the mail? Try using \r\n after every header. Also, I don't think you can call the phpversion() function like that. What does the variable $s_mail hold? It has to be in the correct format: [email protected] [email protected], [email protected] User <[email protected]> User <[email protected]>, Another User <[email protected]> Try it like this: mail("$email","$subject","$message","From: $s_mail\r\nX-Mailer: PHP/ . ".phpversion()."\r\n", "-f $s_mail"); Link to comment https://forums.phpfreaks.com/topic/120441-nobodymyservernamecom-help/#findComment-621159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.