SN1P3R_85 Posted November 30, 2008 Share Posted November 30, 2008 Hi, i am having trouble with the basic format of putting a link inside an email message. When i get the email, it just has the <a href> listed out in text. I just want the link name to appear. How do you fix this? Link to comment https://forums.phpfreaks.com/topic/134822-solved-link-inside-php-mail-body/ Share on other sites More sharing options...
revraz Posted November 30, 2008 Share Posted November 30, 2008 Add "Content-type: text/html; charset=iso-8859-1" To your header when you send the mail. Link to comment https://forums.phpfreaks.com/topic/134822-solved-link-inside-php-mail-body/#findComment-702068 Share on other sites More sharing options...
SN1P3R_85 Posted November 30, 2008 Author Share Posted November 30, 2008 Do i just add it anywhere in the header? What is the syntax for adding it, right now my header is this: $header = "From: www.caidenhome.com \r\n"; Link to comment https://forums.phpfreaks.com/topic/134822-solved-link-inside-php-mail-body/#findComment-702072 Share on other sites More sharing options...
revraz Posted November 30, 2008 Share Posted November 30, 2008 $header = "From: www.caidenhome.com \r\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1"; Link to comment https://forums.phpfreaks.com/topic/134822-solved-link-inside-php-mail-body/#findComment-702073 Share on other sites More sharing options...
JADASDesigner Posted November 30, 2008 Share Posted November 30, 2008 and make sure you throw your header variable into the mail line. Link to comment https://forums.phpfreaks.com/topic/134822-solved-link-inside-php-mail-body/#findComment-702077 Share on other sites More sharing options...
SN1P3R_85 Posted November 30, 2008 Author Share Posted November 30, 2008 Thanks alot, it worked. Link to comment https://forums.phpfreaks.com/topic/134822-solved-link-inside-php-mail-body/#findComment-702080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.