Thread: Php Email
View Single Post
  #1  
Old 11th Aug 04, 09:48 AM
*MO*'s Avatar
*MO* *MO* is offline
Senior Member
 
Join Date: Aug 2002
Location: Cape Town
Posts: 311
*MO* is an unknown quantity at this point
Send a message via MSN to *MO*
Hey guys

got this small problem.

I can send an html email to a user using php NO Problem using the code below

Code:
/* recipients */ $to &nbsp;= "moosthuizen@mweb.com"; // note the comma /* subject */ $subject = "PICTURES ON RHAPSODY"; /* message */ $message = " <html> <head> <title>THIS PICTURE HAS BEEN DISPLAYED ON RHAPSODY</title> </head> <body> <TABLE> <tr> &nbsp;<td> &nbsp; Selected Picture &nbsp;</td> </tr> <tr> &nbsp;<td>"; &nbsp;$message .= "< &nbsp;src=http://www.jmrhapsody.za.net/".str_replace(" ","%20",$requested)."'>"; $message .= "</td> </tr> </TABLE> </body> </html> "; /* To send HTML mail, you can set the Content-type header. */ $headers &nbsp;= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; /* and now mail it */ mail($to, $subject, $message, $headers);
The text comes out on the other side fine. but note that the <img is not there. that tag is for the image, and if i type in <img src="....... then the mail just never arrives

howcome?
Reply With Quote