HTML Email

  • ben_sigma
  • Beginner
  • Beginner
  • User avatar
  • Joined: Mar 12, 2008
  • Posts: 58
  • Loc: South Australia
  • Status: Offline

Post December 3rd, 2008, 5:09 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 3rd, 2008, 5:09 pm

  • N2S
  • Beginner
  • Beginner
  • User avatar
  • Joined: Oct 07, 2008
  • Posts: 48
  • Status: Offline

Post December 4th, 2008, 9:36 am

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
  • Joined: Mar 12, 2008
  • Posts: 58
  • Loc: South Australia
  • Status: Offline

Post December 4th, 2008, 9:29 pm

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
  • Joined: Mar 12, 2007
  • Posts: 6228
  • Loc: South-Africa
  • Status: Offline

Post December 4th, 2008, 11:39 pm

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";
Let's leave all our *plum* where it is and go live in the jungle ...
  • ben_sigma
  • Beginner
  • Beginner
  • User avatar
  • Joined: Mar 12, 2008
  • Posts: 58
  • Loc: South Australia
  • Status: Offline

Post December 8th, 2008, 5:09 pm

Thanks Righteous, that did exactly what i was after.
Thanks Heaps.
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Joined: Mar 12, 2007
  • Posts: 6228
  • Loc: South-Africa
  • Status: Offline

Post December 8th, 2008, 10:30 pm

Excellent, glad I could help out.
Let's leave all our *plum* where it is and go live in the jungle ...

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 94 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.