PDA

View Full Version : sending html email w/ PHP



striker
November 29th, 2005, 11:25 PM
hey guys
I'm making a newsletter form for a client using PHP. I can do all the code with setting up the email with the addresses, but what is the best way for me to send an html or image or something instead of having it just send text within a variable.

thanks
-striker

SlowRoasted
November 30th, 2005, 12:28 AM
I guess make the variable contain the html for the layout you want to show.

SmoothDime
November 30th, 2005, 01:24 AM
an attachment. like normal emails. only thing is - i don't know how to do this programmatically, but i'm sure it can be done.

striker
December 1st, 2005, 07:04 PM
or maybe even a way to send a picture , if an html is not possible

ironikart
December 1st, 2005, 08:58 PM
check out php mailer for an option where you won't have to write your own mail class that supports html:

http://phpmailer.sourceforge.net/