Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2002
    Location
    USA
    Posts
    98

    Putting links in raw e-mail coding

    Here's what I'm looking to do, I have a php script to send info out in an email, but want to include links (not just the typed http stuff) in it. I've tried just inserting <a href tags but it just sends it as <a href blah blah (yes im using the right code). I've tried putting the <html> tags also, how do I accomplish doing this?
    Neufusion.NET - Jobs done right, the first time
    http://www.neufusion.net
    http://www.GamingApex.com - Low Ping, Fast Game Servers!

  2. #2
    Hi - not sure how you do this but I *think* you have to make sure there is a header line...

    Content-Type: text/html

    and not ...

    Content-Type: text/plain

    so that the mail client knows its HTML.

    HTH

    Yellow_Belly

  3. #3
    Join Date
    Mar 2002
    Location
    Westbury, LI NY
    Posts
    1,705
    It is also possible that the mail client is set to text only as well. Thats what I do. I dont want emilas with background music and pictures and tables, if I want pictures, they can be sent as attachments. I just want the content, no fancy html. Its such a pain.

  4. #4
    Join Date
    Sep 2002
    Location
    USA
    Posts
    98
    Well I'm using outlook and have rich-text html enabled and everything, so I think its just a content problem like they said, haven't gotten around to trying it yet, thanks
    Neufusion.NET - Jobs done right, the first time
    http://www.neufusion.net
    http://www.GamingApex.com - Low Ping, Fast Game Servers!

  5. #5
    Join Date
    Nov 2001
    Location
    California
    Posts
    1,991
    Use this header in your code:

    Content-Type: text/html; charset=iso-8859-1

    http://www.php.net/manual/en/ref.mail.php

Posting Permissions

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