Forum Moderators: coopster

Message Too Old, No Replies

HTML emails from PHP?

         

bleak26

5:38 pm on Jan 6, 2006 (gmt 0)

10+ Year Member



I got one for yah. I've been trying to create HTML emails but when i receive the email created by this script the link comes out as text do anyone have any idea why this might be? and what apoach would be best to solve it. Thank you to all the people who have helped me so far you are responsible for me still having hair and for that i thank you.

<?php
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$feedback=$_POST['feedback'];

$toaddress = 'feedback@example.com';
$subject = 'Feedback from web site';
$mailcontent = "<html><body><a href='www.testmylink.com'>click here to test my link</a></body></html>";
$fromaddress = 'From: webserver@example.com';

mail($toaddress, $subject, $mailcontent, $fromaddress);
?>

dreamcatcher

6:20 pm on Jan 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi bleak26,

Check out the PHP manual for some help:

[uk2.php.net...]

Scroll down and you`ll see some solutions.

dc