Re: how to mail through php
| From: | James Atkinson | Date: | Mon, 16 Oct 2000 17:33:55 +0000 |
| Subject: | Re: how to mail through php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20405@lists.php.net to get a copy of this message | ||
On Mon, 16 Oct 2000, 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
>
http://www.php.net/manual/function.mail.php
but if you are too lazy to read :D
mail("some@address.com, "Form Mail!", "name: $name\r\nage: age: $age\r\n
suggestions: $suggestions\r\nMail ID: $mail_id\r\nText: $text\r\n");
That should do it for you.
--
James Atkinson
-----------------------------------------------------------------
James Atkinson 100world
Technical Developer 512-1529 West 6th Avenue
phone: +1-604-637-8122 Vancouver, BC, V6J 1R1
fax: +1-604-742-1770 Canada
email: james.atkinson@100world.com http://www.100world.com
+---------------------------------------------------------------+
| This message may contain confidential and/or privileged |
| information. If you are not the addressee or authorized to |
| receive this for the addressee, you must not use, copy, |
| discolse or take any action based on this message or any |
| information herein. If you have received this message in |
| error, please advise the sender immediately by reply e-mail |
| and delete this message. Thank you for you cooperation |
+---------------------------------------------------------------+