Jump to content

edontee

Recommended Posts

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

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:

 

Try it like this:

mail("$email","$subject","$message","From: $s_mail\r\nX-Mailer: PHP/ . ".phpversion()."\r\n", "-f $s_mail");

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.