Jump to content

External Image Not Shwing in PHP HTML E-Maill


patd

Recommended Posts

I use this header to send HTML E-Mail --

[
$headers="Content-Type:text/html;CHARSET=iso-8859-1";
$headers.="From: Me<[email protected]>";

]

It's working well until I send some contet with " ' ". or have some external image.


Like when I send --
<H1>Happy Independence Day to you From Me</H1><BR>xasxa sx asx asxa <IMG
src="http://www.xyz.com/Logo.gif" border=0>


It Becomes --
<H1>Happy Independence Day to you From Me</H1><BR>xasxa sx asx asxa <IMG
src='\"http://www.xyz.com/Logo.gif\"' border=0>


so the content looks bad and the external Image not showing.
add the \" in the first place then when processed it will be fine e.g.

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<H1>Happy Independence Day to you From Me</H1><BR>xasxa sx asx asxa <IMG
src=\"http://www.xyz.com/Logo.gif\" border=0> [/quote]

That should do the job
  • 2 weeks later...

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.