You are here: Re: [PHP] Email Form « PHP « IT news, forums, messages
Re: [PHP] Email Form

Posted by "AK" on 01/20/06 00:56

----- Original Message -----
From: "Thomas Bonham" <thomasbbonham@gmail.com>
To: <php-general@lists.php.net>
Sent: Thursday, January 19, 2006 12:40 PM
Subject: [PHP] 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@serveraddress.com.
>
> 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@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

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

Best regards,

Andras Kende
http://www.kende.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация