Results 1 to 5 of 5
-
10-08-2002, 04:44 PM #1Junior Guru Wannabe
- 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!
-
10-08-2002, 04:55 PM #2Junior Guru
- Join Date
- Sep 2002
- Posts
- 176
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
-
10-08-2002, 05:27 PM #3Web Hosting Master
- 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.
-
10-08-2002, 05:31 PM #4Junior Guru Wannabe
- 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!
-
10-08-2002, 08:40 PM #5Web Hosting Master
- 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