Search code examples
phpcodeigniteremailemail-headers

From parameter in email is showing Hosting providers email


I'm using codeigniter 2.X and my app is hosted on Justhost,
App was working fine till few days back when justhost upgraded the server, After upgrade outgoing emails are showing wrong From email address.

here is debug output after from the app

User-Agent: Codeigniter
Date: Tue, 10 Jul 2012 03:54:17 -0600
From: "example.com" 
Return-Path: 
Reply-To: "example.com" 
X-Sender: [email protected]
X-Mailer: Codeigniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_4ffbfbc9170e1"

In my inbox I get following details

Date: Tue, 10 Jul 2012 03:54:17 -0600
From: [email protected]
Reply-To: "example.com" <[email protected]>
X-Sender: [email protected]
X-Mailer: codeigniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_4ffbfbc9170e1"
X-Identified-User: {:just61.justhost.com:user:just61.justhost.com} {sentby:program running on server}

Any input will be appreciated.


Solution

  • Justhost was doing this crazy they need valid email address which was created to be used.