Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,616 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 990 people online right now. Registration is fast and FREE... Join Now!




auto reply

 
Reply to this topicStart new topic

auto reply

chitara
post 9 Aug, 2006 - 04:40 AM
Post #1


D.I.C Head

**
Joined: 16 Dec, 2005
Posts: 74


My Contributions


Hello!

Can anyone tell me hoe can I creater an auto reply/ auto responder for a contact form.

I need to create this, couse if any visitor fill out the contact form he/she'll received a mail to his/her giviend mail account and at the same time the form data will be stored in a database/or any specified mail account of the website.

Please help me!!!

regards
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 9 Aug, 2006 - 04:53 AM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


The mail() function can likely do what you require...I assume you wish to send certain information to the user?

http://ca3.php.net/function.mail
User is offlineProfile CardPM

Go to the top of the page

lance
post 30 Jan, 2007 - 06:21 PM
Post #3


New D.I.C Head

*
Joined: 30 Jan, 2007
Posts: 43


My Contributions


Hi Amadeus,

Just got here after searching quite a bit.

I have a similar issue with replying though my email form is in flash. The is the PHP code I have currently that makes my flash form send the data to my email id. Now how do i make it such that an auto-reply is given to the user with different subject and body.

CODE

<?
   $to = "email@your.com";
   $ip = $_SERVER['REMOTE_ADDR'];
   $msg = "$name\n";
   $msg .= "$message\n" . "Sender's ip address is " . nl2br($ip);

  mail($to, $subject, $msg, "Message From: Online client\nReply-To: $email\n");

?>


If you know how to do this, can you please help me out.
Thanks.
User is offlineProfile CardPM

Go to the top of the page

snoj
post 30 Jan, 2007 - 06:41 PM
Post #4


$Null

Group Icon
Joined: 31 Mar, 2003
Posts: 3,304



Thanked 5 times

Dream Kudos: 700
My Contributions


Reread that code and read about the mail()....then come back and ask the question again.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:05AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month