Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
auto email response HELP
Old 02-24-2011, 08:55 PM auto email response HELP
Junior Talker

Posts: 2
Trades: 0
Hello,

Basically I would like to have an auto email response after someone fills out my form so that I can provide them with a special link to their given email address.

I have managed to get the data they enter in my form sent to my email address, I just can’t figure out for the life of me how to send an automatic email message to their email address.

Below is the PHP script I’m using with my form. If someone could please provide me with the rest of the script I need so that an automatic email message can be sent, it would be greatly appreciated!

Please note I’m very new to PHP

<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$postcode = $_POST['postcode'];

$message = "Name: $name \n";
$message .= "Phone: $phone \n";
$message .= "Postcode: $postcode \n";

mail('something@something.com', 'Feedback From Results', $message, 'From: ' . $email);
header( "Location: http://something.html" );
?>
kathleencook88 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2011, 09:04 PM Re: auto email response HELP
Skilled Talker

Posts: 83
Trades: 0
i think autorespons is send through smtp server not in code.
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
DmitryS is offline
Reply With Quote
View Public Profile
 
Old 02-24-2011, 09:14 PM Re: auto email response HELP
Junior Talker

Posts: 2
Trades: 0
Hello DmitryS,

Thanks for your post!

I know that it can be done with code, as i found a script for it on the internet... Only problem with the script i found was that it didn't send me the entered data from my form. (like my one below does).

So im trying to find out how to do both together

kathleencook88 is offline
Reply With Quote
View Public Profile
 
Old 02-25-2011, 06:10 PM Re: auto email response HELP
eyu
eyu's Avatar
Super Talker

Posts: 123
Name: Edward Yu
Trades: 0
Well you aren't sending an email to the user's email, you're sending it to a specified email. To send an email to whoever fills out the form try this:
PHP Code:
mail($email'Feedback From Results'$message'From: ' $email); 
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

eyu is offline
Reply With Quote
View Public Profile Visit eyu's homepage!
 
Old 02-26-2011, 10:48 PM Re: auto email response HELP
Average Talker

Posts: 25
Name: Reuven Gloriss
Location: NYC
Trades: 0
you need to specify another mail function to the mail from the form.
see below , replace your mail and the message to the person from the form.
Use this:
Code:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$postcode = $_POST['postcode'];

$message = "Name: $name \n"; 
$message .= "Phone: $phone \n"; 
$message .= "Postcode: $postcode \n";

if(mail('youremail@yourmailserver.com', 'Feedback From Results', $message, 'From: ' . $email)){
mail(email, 'your subject to the response mail','thank you for filling out the form...','youremail@yourmailserver.com')
header( "Location: http://something.html" );
}
else echo 'some problem';
?>
__________________
A Computer is like your body, protect it, use it smartly, add new features - and it will perform better.

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
ruven is offline
Reply With Quote
View Public Profile Visit ruven's homepage!
 
Old 02-27-2011, 07:08 AM Re: auto email response HELP
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Try this link :

http://www.scripts.com/php-scripts/e...low-up-script/
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to auto email response HELP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23193 seconds with 12 queries