Jump to content

Archived

This topic is now archived and is closed to further replies.

patd

External Image Not Shwing in PHP HTML E-Maill

Recommended Posts

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

[
$headers="Content-Type:text/html;CHARSET=iso-8859-1";
$headers.="From: Me<you@yourdomain.com>";

]

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
the problem has been solve by using stripslash(); function

Share this post


Link to post
Share on other sites

×

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.