Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tell a friend script that sends html formatted messages?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
im trying to get hold of a tell a friend script that sends html formatted messages. ie the message received opens up as a html page in the email client. im no coder just looking for a quick way of doing this, any help/pointers muchly appreciated,

penny
 
You need to add
Code:
Content-Type: text/html\n
to the header section of the
Code:
mail()
function.
Code:
$body = include("/path/to/htmlfile.htm");
mail("$to","$subject","$body","From:me@somewhere.com\nContent-type:text/html");
Just put all your images and the HTML in that htmlfile.htm and it should work. Make sure style sheets are internal to the file and make all image paths and links full URLs.

You can also check out for a class that should help you.

Hope that helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top