I have some php code here that sends an email to a friend when a simple form is filled out. The email function is working fine. I was just wondering how can I add an image that will show up in the email message?
?php
$myemail = $visitormail;
?>
</font>
</b>
<br>
<?php
$ip = getenv("REMOTE_ADDR");
$notes = stripcslashes($notes); $messageis = " $todayis \n
Your Friend: $visitor ($visitormail)\n
Sent you this message:
///////////////////I want an Image here
<img src="image1" alt=image 1>
/////// I get the following error when trying to add the image this way:
Parse error: parse error, unexpected T_STRING in /usr/home/sites/ on line 60
//Email Text
Hi, thought that you might be interested in this.
Text Here.............
$messageme = $ip . " " . $messageis;
$from = "From: $myemail\r\n";
if ($friendmail != "")
mail($friendmail, $sitename, $messageis, $from);
?>
Thanks for any help
?php
$myemail = $visitormail;
?>
</font>
</b>
<br>
<?php
$ip = getenv("REMOTE_ADDR");
$notes = stripcslashes($notes); $messageis = " $todayis \n
Your Friend: $visitor ($visitormail)\n
Sent you this message:
///////////////////I want an Image here
<img src="image1" alt=image 1>
/////// I get the following error when trying to add the image this way:
Parse error: parse error, unexpected T_STRING in /usr/home/sites/ on line 60
//Email Text
Hi, thought that you might be interested in this.
Text Here.............
$messageme = $ip . " " . $messageis;
$from = "From: $myemail\r\n";
if ($friendmail != "")
mail($friendmail, $sitename, $messageis, $from);
?>
Thanks for any help