BetaONE will rise again!

BetaONE will rise again! (http:\\b1.hcanet.com\forum/index.php)
-   Web Development (http:\\b1.hcanet.com\forum/forumdisplay.php?f=50)
-   -   Php Email (http:\\b1.hcanet.com\forum/showthread.php?t=12946)

*MO* 11th Aug 04 09:48 AM

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  = "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?


All times are GMT +1. The time now is 03:12 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.