usadarts Posted February 27, 2007 Share Posted February 27, 2007 Having problem sending link within mail() $message='<a href="http://www.usadarts.com"><i>USADarts Website</i></a>'; mail("$blah; $blah", "NEW AFFILIATED MEMBER", " $message Regards, David ", "From: $sender"); The email is showing up as follows: <a href="http://www.usadarts.com"><i>USADarts Website</i></a> Regards, David Not sure what is wrong with the code. David Link to comment https://forums.phpfreaks.com/topic/40305-php-mail/ Share on other sites More sharing options...
AV1611 Posted February 27, 2007 Share Posted February 27, 2007 you are sending a text only email. You have to include a header that will make the mail recipient's email client display it as html Link to comment https://forums.phpfreaks.com/topic/40305-php-mail/#findComment-194985 Share on other sites More sharing options...
simcoweb Posted February 27, 2007 Share Posted February 27, 2007 Try swapping your quotes around. Like this: <?php $message="<a href='http://www.usadarts.com'><i>USADarts Website</i></a>"; ?> Link to comment https://forums.phpfreaks.com/topic/40305-php-mail/#findComment-194988 Share on other sites More sharing options...
usadarts Posted February 27, 2007 Author Share Posted February 27, 2007 How is this setup? You have to include a header that will make the mail recipient's email client display it as html Does not work either <?php $message="<a href='http://www.usadarts.com'><i>USADarts Website</i></a>"; ?> Link to comment https://forums.phpfreaks.com/topic/40305-php-mail/#findComment-194991 Share on other sites More sharing options...
ashly Posted February 27, 2007 Share Posted February 27, 2007 Use like this: $headers = "MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\n"; mail($mailAddress, $mailSubject, $mailMessage, $headers); I hope this will work out.. Cheers Ashly Link to comment https://forums.phpfreaks.com/topic/40305-php-mail/#findComment-194997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.