HTML Email

  • ben_sigma
  • Beginner
  • Beginner
  • User avatar
  • Posts: 58
  • Loc: South Australia

Post 3+ Months Ago

Hi all,
I am building an online breakfast menu for a client and i need to build a html email to be sent to him after the data is compiled.
I am currently using PHP mail function.

Can HTML email be sent like this??

At the moment my emails are only repeating the3 html code in the email and this is useless.

If anyone can tell me how to properly create a html email it would be greatly appreciated.

Thanks in advance :-)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • N2S
  • Beginner
  • Beginner
  • User avatar
  • Posts: 48

Post 3+ Months Ago

I have my own email service, and have tested it out a couple of times. Coding emails is such a drag...

Everything needs to be hard wired and everything looks different on the receiving end. Google is probably the best mentor for the job though. I spent almost a week reading, researching, designing, coding the first sample email. It still is not perfected in some email hosts.

here is a pretty good table to help you out..
http://www.campaignmonitor.com/css/

good luck. You will need it lol (=
  • ben_sigma
  • Beginner
  • Beginner
  • User avatar
  • Posts: 58
  • Loc: South Australia

Post 3+ Months Ago

That site was good for templates but didnt really help me sorry,
Thanks for trying N2S,

Heres what i need to do,

I have a breakfast menu,
clicking a button runs a ajax function that executes a PHP script.
The PHP script sends the email with the email() function built in to PHP.

Then a message is returned through the ajax saying "Order Sent"

I need to know if a HTML formatted email can be sent using the PHP function...

Once again any help is appreciated.
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

you can send HTML email with php yes, you can just add a header to tell the mail client that it's an HTML email. like this one:
Code: [ Select ]
$headers .= "Content-Type: text/HTML; charset=ISO-8859-1\n";
  • ben_sigma
  • Beginner
  • Beginner
  • User avatar
  • Posts: 58
  • Loc: South Australia

Post 3+ Months Ago

Thanks Righteous, that did exactly what i was after.
Thanks Heaps.
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

Excellent, glad I could help out.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 33 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.