NYCPHP Meetup

[nycphp-talk] [OT] PHP Email And GMail

Joseph Crawford codebowl at gmail.com
Tue Jan 18 12:28:53 EST 2005


Hello Everyone,

does gmail handle it's headers differently than other email services / clients?

I have setup a script that sends a contact form information as a very
basic HTML email, however in gmail it doesnt accept the headers,
instead it prints them as part of the message.  Yahoo on the other
hand it works perfect with.




Here is the source of the email according to GMail

X-Gmail-Received: 4ce33c49d6168d040d1878e9ecd7e0b4b77217f8
Delivered-To: codebowl at gmail.com
Received: by 10.38.78.7 with SMTP id a7cs11736rnb;
        Tue, 18 Jan 2005 09:24:46 -0800 (PST)
Received: by 10.38.76.77 with SMTP id y77mr179306rna;
        Tue, 18 Jan 2005 09:24:46 -0800 (PST)
Return-Path: <nobody at work.codebowl.com>
Received: from work.codebowl.com (69-173-187-56.sbtnvt.adelphia.net
[69.173.187.56])
        by mx.gmail.com with ESMTP id 63si154602rna.2005.01.18.09.24.44;
        Tue, 18 Jan 2005 09:24:46 -0800 (PST)
Received-SPF: neutral (gmail.com: 69.173.187.56 is neither permitted
nor denied by domain of nobody at work.codebowl.com)
Received: by work.codebowl.com (Postfix, from userid 65534)
	id 8D77F624312; Tue, 18 Jan 2005 12:23:57 -0500 (EST)
To: codebowl at gmail.com
Subject: New Contact Form Information
MIME-Version: 1.0



this is where the body seems to start, everything below here is in the
email body and not the headers.

Content-type: text/html; charset=iso-8859-1

From: Hamilton Park <blah at blah.com>
Reply-To: blah at blah.com
Message-ID: <9b7ce5c8fef013fe13cac23be9dd766a at codebowl.homelinux.net>

X-Mailer: PHP/4.3.10

Date: Tue, 18 Jan 2005 12:23:57 -0500 (EST)





These are the headers according to yahoo mail

X-Apparently-To:	 codebowl at yahoo.com via 66.218.95.67; Tue, 18 Jan
2005 09:17:59 -0800
Authentication-Results:	mta107.mail.sc5.yahoo.com from=blah.com;
domainkeys=neutral (no sig)
X-Originating-IP:	[69.173.187.56]
Return-Path:	<nobody at work.codebowl.com>
Received:	from 69.173.187.56 (EHLO work.codebowl.com) (69.173.187.56)
by mta107.mail.sc5.yahoo.com with SMTP; Tue, 18 Jan 2005 09:17:59
-0800
Received:	by work.codebowl.com (Postfix, from userid 65534) id
EC143624312; Tue, 18 Jan 2005 12:17:12 -0500 (EST)
To:	codebowl at yahoo.com
Subject:	New Contact Form Information
MIME-Version:	1.0
Content-type:	text/html; charset=iso-8859-1
From:	"Hamilton Park" <blah at blah.com>  Add to Address BookAdd to Address Book
Reply-to:	blah at blah.com
Message-ID:	<849c29709fbe3f1d203083d0c763c64b at codebowl.homelinux.net>
X-Mailer:	PHP/4.3.10
Date:	Tue, 18 Jan 2005 12:17:12 -0500 (EST)
Content-Length:	291

-- 
Joseph Crawford Jr.
Codebowl Solutions
codebowl at gmail.com



More information about the talk mailing list