Hi
I'm using this script which send an email from my web site to a chosen email address and another to the admin address.
My problem is that I would like this email to be in HTML but as soon as I insert an image the script reufses to work. Is it because the code should be in php, not html ?
I'm sure its some simple solution that I just cannot work out.
Thanks for you time.
D
<?
// Gets the date and time from your server
$date = date("d/m/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address aii
IF ($action != ""):
mail("$femail","Site Recomendation",
"
<img src="http://wwww.feneo.com/feneo/logo.jpg" width="129" height="200">
Hello\n
$fname has recommended this site:
http://www.feneo.com
Enjoy
This message was generated at Feneo.com website by $fname $sname
Date/Time: $date", "FROM:$email");
//This sends a confirmation to me
mail("info@feneo.com", "Recomendation sent to..",
"Sent by $fname $sname to $femail
IP: $ip
","FROM:$email");
ENDIF;
?>