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
voodoo9055
Forum Commoner
Posts: 51 Joined: Sat Apr 26, 2003 3:27 pm
Location: Montgomery, AL
Post
by voodoo9055 » Mon Sep 15, 2003 8:34 pm
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 » Mon Sep 15, 2003 9:02 pm
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 » Mon Sep 15, 2003 9:19 pm
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>";
voodoo9055
Forum Commoner
Posts: 51 Joined: Sat Apr 26, 2003 3:27 pm
Location: Montgomery, AL
Post
by voodoo9055 » Tue Sep 16, 2003 7:41 am
It works! Thanks a lot Bizwala.