From: Amit Bobade on
Hi friends,
I am new in PHP. I want to know that how to send an email in HTML
format(i.e. with proper header, footer, etc) in PHP.
Please suggest me with code.

--
Thanks and Regards,
Amit
From: Richard Quadling on
On 9 June 2010 09:08, Amit Bobade <amit(a)e-arth.in> wrote:
> Hi friends,
> I am new in  PHP. I want to know that how to send an email in HTML
> format(i.e. with proper header, footer, etc) in PHP.
>  Please suggest me with code.
>
> --
> Thanks and Regards,
> Amit
>

I use RMail from phpguru.org (previously called html_mime_mail).

http://www.phpguru.org/downloads/Rmail/
http://www.phpguru.org/downloads/Rmail/Rmail%20for%20PHP/
http://www.phpguru.org/downloads/Rmail/Rmail%20for%20PHP/docs.html

Others use PHPMailer.

I came to RMail first and it works fine for me (with the patches
available at the second link).

Richard Quadling.

P.S. Not the same Richard who created RMail. That's Richard Hayes.

--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
From: Michiel Sikma on
On 9 June 2010 11:59, Richard Quadling <rquadling(a)gmail.com> wrote:

> On 9 June 2010 09:08, Amit Bobade <amit(a)e-arth.in> wrote:
> > Hi friends,
> > I am new in PHP. I want to know that how to send an email in HTML
> > format(i.e. with proper header, footer, etc) in PHP.
> > Please suggest me with code.
> >
> > --
> > Thanks and Regards,
> > Amit
>
>

Well, you can simply use PHP's built in mail() function, documented here:
http://php.net/manual/en/function.mail.php
It's extremely easy to use, particularly if you copy and change the code
examples.

If you want something more powerful, try Swift Mailer:
http://swiftmailer.org/

Michiel