SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Form to Email Help Please
-
Sep 11, 2004, 16:08 #1
- Join Date
- Aug 2004
- Location
- oregon
- Posts
- 14
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Form to Email Help Please
I have built a form and works great. The problem is that in the email message I want to have certain text link to another page - but I can't make it work.
Here is the code for the email message:
$message = "$recipient_name,\n\n$sender_name wants you to read an article\n Click here to read the article";
I want the words "Click here" to link to a URL - how do I do that because just putting a normal <a href="urlhere.com"> doesn't work.
Thanks!!!!
-
Sep 11, 2004, 18:13 #2
- Join Date
- Jul 2004
- Location
- Raleigh, NC
- Posts
- 783
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
you have to send the email as html in order to use html tags. otherwise, only their text equivilant will be displayed
http://us4.php.net/manual/en/function.mail.php
-
Sep 11, 2004, 20:04 #3
If you send a text based email with the link as the full url. Like this:
Click on this link: http://www.mydomain.com/mygreatpage.html
It will work in most email clients, except AOL of course. To make the link "clickable" in AOL (you'd be suprised at the number of AOL users that cannot copy and paste), You can simply use the anchor tag as you have it in a plain text message, and the AOL client will recognize it as a hyperlink.
Bookmarks