Re: Email Form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message ----- From: "Thomas Bonham" <thomasbbonham@xxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, January 19, 2006 12:40 PM
Subject:  Email Form


Hello All,

I don't remember how to do email with php. I have all of it done, except for I can't get it to show the senders email address. All I get it from apache@xxxxxxxxxxxxxxxxxx

If some one has a example that they can post that would be great.

Thank You

Thomas

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Hello,

http://us2.php.net/manual/en/function.mail.php

Example 2. Sending mail with extra headers.

The addition of basic headers, telling the MUA the From and Reply-To addresses:

<?php
$to      = 'nobody@xxxxxxxxxxx';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@xxxxxxxxxxx' . "\r\n" .
  'Reply-To: webmaster@xxxxxxxxxxx' . "\r\n" .
  'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

Best regards,

Andras Kende
http://www.kende.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux