Hyperlinks in email??????

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
voodoo9055
Forum Commoner
Posts: 51
Joined: Sat Apr 26, 2003 3:27 pm
Location: Montgomery, AL

Hyperlinks in email??????

Post by voodoo9055 »

Ok, I am stumped. How do you include a hyperlink inside the emails sent by the mail() function?

No matter what I do, I keep getting the url in plain text after emailing the message to myself.
tsg
Forum Contributor
Posts: 142
Joined: Sun Jan 12, 2003 9:22 pm
Location: SE, Alabama
Contact:

Post by tsg »

If you are using AOL .. aol email account .. then you won't get a clickable link ... you will have to format it <a href="LINK">link</a> ..
Bizwala
Forum Newbie
Posts: 12
Joined: Tue Sep 09, 2003 12:10 pm
Location: Las Vegas, Nevada

Post by Bizwala »

You can also create html email by adding the following to your headings. Then call the link via html

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$message="<a href=\"http://someurl.com\">http://someurl.com</a>";
User avatar
voodoo9055
Forum Commoner
Posts: 51
Joined: Sat Apr 26, 2003 3:27 pm
Location: Montgomery, AL

Post by voodoo9055 »

It works! Thanks a lot Bizwala.
Post Reply