HTML EMAIL ISSUE
- Started
- Last post
- 12 Responses
- ********
I'm using the code from here to send an HTML email... (second block of code)
http://www.webcheatsheet.com/PHP…now to my email address it appears fine in gmail... but to another one it appears like this in gmail...
Content-Type: multipart/alternative; boundary="PHP-alt-8794a1c87d7d84...
Message-Id: <20080701213001.E803F165633@web2.intrascape.com>
Date: Tue, 1 Jul 2008 22:30:01 +0100 (BST)--PHP-alt-8794a1c87d7d840d72759d...
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bitHello World!!!
This is simple text email message.--PHP-alt-8794a1c87d7d840d72759d...
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit<h2>Hello World!</h2>
<p>This is something with HTML formatting.</p>--PHP-alt-8794a1c87d7d840d72759d...
ANY IDEAS WHY!
- ********0
didn't know you could use <strong>bold</strong>
- ********0
<strong>bold</strong>
- ********0
<p>This is something with <strong>bold</strong> formatting.</p>
- ESKEMA0
talking to yourself?
- welded0
I get similar results when I send email from my local system, but sending from the server is just fine. Could that be it?
(Only checked in Mail, I should mention.)
- SoulFly0
Can you explain this further?
>now to my email address it appears fine in gmail... but to another one it appears like this in gmail...
- Fizik0
this could get messy
I'd look into those encoding settings....
and maybe some tips here:
http://www.email-standards.org/
http://www.campaignmonitor.com/r…
- airey0
it may be that the php your using just isn't any good and for email environments that don't support HTML it isn't supplying a text only version but showing the whole php code'n'all. i could be totally wrong of course.
also, have you looked at the notes from other users on that page you linked, that may be a similar issue?
- ********0
... the strange thing is that if i send to my account it is fine... e.g. (which i pick up in gmail) but if i send it to say it loses some of the formatting
- ********0
anyone?
- SoulFly0
Google, yahoo, hotmail and other webmails have their own CSS and can overwrite your CSS.
There are different triggers that can set-up their CSS or that avoids it.
It is not unusual for this to happen.
- ********0
yeah it wasn't the css doing it, it was just not applying the PHP alt stuff properly... worked though when sending from my own domain... so I'm doing a workaround