Re: how to mail through php
| From: | Joe Stump | Date: | Mon, 16 Oct 2000 17:35:04 +0000 |
| Subject: | Re: how to mail through php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20404@lists.php.net to get a copy of this message | ||
Sure:
<?
$title = 'Mail Form';
$msg = 'Name: '.$name."\n";
$msg .= 'Age: '.$age."\n";
$msg .= 'Suggestions: '."\n".$suggestions."\n";
$msg .= 'Mail ID: '.$mail_id."\n";
$msg .= 'Text: '."\n".$text."\n";
mail('you@server.com',$title,$msg,'From: Whoever
<someone@somewhere.com>');
?>
hope that helps
--Joe
On Mon, Oct 16, 2000 at 10:52:19PM +0530, N. Sagar Chand wrote:
> hi everyone
> i am a novice to php
> i have created some text boxes in a form like
>
> name
> age
> suggestions (text area)
> ur mail id
> ur text (text area)
>
> now when a user clicks the send button the form the entire text which
> he has entered should be mailed to some address in some good format like this
>
> name : xxxxx
> age : xx
> suggestions : xxxxxxxxxx, xxxxxxxxxx
> mail id : xxxx@xxx
> text : xxxxxxxxxxxxxxxxxxxxx
> xxxxxxxxxxxxxxxxxxxxx
>
>
> got it
>
> can any one help me out
>
> thanQ
>
> sagarchand@yahoo.com
>
/*****************************\
* Joe Stump *
* www.Care2.com *
* Office: 650.328.0198 *
* Extension: 122 *
\*****************************/
http://www.miester.org/Joe/Stump/Joe_Stump_resume.html
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+@ o? K? w---! O-@ M+@ V-! P(++) PE(+) Y+@ PGP+++@ t+@
5? R-! tv@ b+ DI++@ D(++++) G++@ e+@ h@ r+! z(+++++**)!
------END GEEK CODE BLOCK------