Jump to content


Photo

External Image Not Shwing in PHP HTML E-Maill


  • Please log in to reply
2 replies to this topic

#1 patd

patd
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 25 March 2006 - 11:36 AM

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.

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 25 March 2006 - 12:06 PM

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
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 patd

patd
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 06 April 2006 - 01:02 PM

the problem has been solve by using stripslash(); function




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users