Jump to content


Photo

how to send html email using php mail() function


  • Please log in to reply
1 reply to this topic

#1 jeboy

jeboy
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts
  • LocationRizal, Philippines

Posted 29 September 2006 - 07:13 AM

I would like to ask for a help to send html email in easiest way. I've been using php mail() function for quite some time but eventually, I tried to send html email using mail() function but it didn't work.

Thanks...

#2 steveclondon

steveclondon
  • Members
  • PipPipPip
  • Advanced Member
  • 161 posts

Posted 29 September 2006 - 07:42 AM

you need to put the html headers in the header section of the mail function. Use the link below (in my sig) download the chm of the php manual and do a search for the mail() function. You will see examples of how to put the headers in. If you don't mind using classes there is a very easy class you can use that will do all of this for  you. See the link below.

http://phpmailer.sourceforge.net/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users