SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    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!!!!

  2. #2
    SitePoint Guru
    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

  3. #3
    Non-Member Gator99's Avatar
    Join Date
    Sep 2004
    Location
    Florida
    Posts
    613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •