|
Posted by phpCodeHead on 10/24/07 13:02
On Oct 24, 7:13 am, Dev <hanu...@gmail.com> wrote:
> Dear All,
> I have created a website.
> in the contact us page i want to send all information (Entered by
> visitor in text boxex) directly to my e-mail address.
> to do this i have no idea because i am new to PHP.
> thanks in advance
> Dev
To get you started -> http://us.php.net/manual/en/ref.mail.php
For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. PHP will first look for
sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/
usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have
sendmail available from your PATH. Also, the user that compiled PHP
must have permission to access the sendmail binary.
If you want to use a package -> http://pear.php.net/package/Mail and/
or http://pear.php.net/package/Mail_Mime
PEAR's Mail package defines an interface for implementing mailers
under the PEAR hierarchy. It also provides supporting functions useful
to multiple mailer backends. Currently supported backends include:
PHP's native mail() function, sendmail, and SMTP. This package also
provides a RFC822 email address list validation utility class.
Mail_Mime provides classes to deal with the creation and manipulation
of mime messages.
It allows people to create Email messages consisting of:
* Text Parts
* HTML Parts
* Inline HTML Images
* Attachments
* Attached messages
Starting with version 1.4.0, it also allows non US-ASCII chars in
filenames, subjects, recipients, etc.
HTH....
[Back to original message]
|