Author Topic: reply to:  (Read 1168 times)

0 Members and 1 Guest are viewing this topic.

Offline doppelt

  • Newbie
  • *
  • Posts: 5
reply to:
« on: December 12, 2013, 08:26:27 PM »
Hi

this is a simple query

I have the form script working and it has been for a few years

below is a copy of my script that I use

when we get an email with the form results and click on the 'reply' button

the email comes back to us

can I designate where the email will go if I 'reply' to the form response sent to 'fincacaballoloco@gmail.com'  ?

when we get a form result, and click the 'reply' button,
we want it to go to the person who sent it

I think that is not possible-right?

thanks
Dennis

here is my script:
PS:  the file upload section is not used

The below has been edited by the admin.
______________

#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
##################################################################################
# Form2Email.net 27/November/2006
# 1999-2005 Form2Email.net
##################################################################################
# Instructions:              http://www.Form2Email.net/instructions/
# FAQ:                       http://www.Form2Email.net/faq/
##################################################################################
my $script_name              = 'inverto54.pl';
my $HTML_thankyou            = 'http://www.fincacaballoloco.com/thanks.htm';
my $to                       = 'fincacaballoloco@gmail.com';
my $from                     = 'fincacaballoloco@gmail.com';
my $mailprog                 = '/usr/sbin/sendmail';
my $subject                  = 'Web Response from Bookings Form';
##################################################################################
#
#          That's everything you need to get your script running!
#                You don't need to change anything else
#      unless you want to use any of the advanced features of the script
#
##################################################################################
# Advanced Settings Log details
my $log                      = 0;
my $log_name                 = 'log.txt';
my $seperator                =  '##### log #####';
my $data_only                = 0;
##################################################################################
# Admin mode
my $admin_mode               = 'admin';
my $username                 = "bobstark";
my $password                 = "jogijoost3";
##################################################################################
# Advanced Settings
my $kill_image_buttons_value = 1;
my $kill_html_tags        = 1;
my $subject_field            = "";
my $max_message_length        = 10000;
my $max_message_error        = "Your message is too big";
my $send_just_data           = 0;
##################################################################################
# Advanced Settings From Field Name
my $from_field_name          = 'Email';
my $from_field_name_error    = "Data Error in $from_field_name";
##################################################################################
# Advanced Settings Auto Responder
my $auto_responder           = 0;
my $auto_responder_from      = 'email@your-website-url.co.uk';
my $auto_responder_message   = "responder.txt";
my $auto_responder_subject   = "Email from your-website-url.co.uk";
##################################################################################
# Advanced Settings Environmental values
my $REMOTE_ADDR              = 0;
my $HTTP_USER_AGENT          = 0;
my $DATE                     = 0;
##################################################################################
# Advanced Settings SMTP email
# use Net::SMTP;
my $send_via_SMTP            = 0;
my $mailhost                 = 'smtp.com';
##################################################################################
# Advanced Settings required fields
my $required_fields_form     = 1;
my @required_fields          = ();
my @required_fields_numbers  = ();
my @required_fields_email    = ();
my $error_fields_require     = "Field is blank, it is required";
my $error_fields_numbers     = "Only numbers";
my $error_fields_email       = "Email address is not valid";
my $error_fields_forbidden   = "Forbidden field name";
my $error_title              = "<b>Sorry, we need you to check the following</b>";
my $fontColor                = "black";
my $fontSize                 = 3;
my $fontFace                 = "Tahoma";
my $return_message           = "Please click 'back' on your browser and try again";
##################################################################################
# Advanced Settings extra thank you page
$HTML_thankyou_field_name = 'ThankYouPage';
$ThankYou{'thankyou1'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou2'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou3'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou4'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou5'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou6'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou7'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou8'}       = 'http://www.your-website-url.co.uk/';
$ThankYou{'thankyou9'}       = 'http://www.your-website-url.co.uk/';
##################################################################################
# Advanced Settings extra email address
$field_name_email = 'SendToAddress';
$SendTo{'email1'}            = 'email@your-website-url.co.uk';
$SendTo{'email2'}            = 'email@your-website-url.co.uk';
$SendTo{'email3'}            = 'email@your-website-url.co.uk';
$SendTo{'email4'}            = 'email@your-website-url.co.uk';
$SendTo{'email5'}            = 'email@your-website-url.co.uk';
$SendTo{'email6'}            = 'email@your-website-url.co.uk';
$SendTo{'email7'}            = 'email@your-website-url.co.uk';
$SendTo{'email8'}            = 'email@your-website-url.co.uk';
$SendTo{'email9'}            = 'email@your-website-url.co.uk';
##################################################################################
# Advanced Settings file upload
my @file_upload_fields       = ();
my $rename_file              = 0;
my $max_size                 = 800000;
my @required_file_types      = ("txt", "jpg", "jpeg", "tif", "gif", "docx", "pdf", "doc");
my $error_max_size           = "Your file is too big!";
my $error_file_type          = "File type is not valid!";
my $file_dir                 = "/var/www/ddbf86f1/www.weddingsincostarica.com/html/uploads";
my $file_URL                 = "http://weddingsincostarica.com/uploads";
my $useKb                    = 0;
##################################################################################
#
#          Stop! You don't need to edit anything below this line
#
##################################################################################
# Form2Email.net 1999 - 2005
# This script is available for private and commercial use
# You may not sell this script in any format to anybody
# The script may only be distributed by Form2Email.net
# Do not post or email any part of the this code in any format whatsoever
# The redistribution of modified versions of the scripts is strictly prohibited
# Form2Email.net accepts no responsibility or liability
# whatsoever for any damages however caused when using this script
# By downloading and using this script you agree to the terms and conditions
##################################################################################



« Last Edit: December 15, 2013, 06:20:49 PM by Jason »

Offline Jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 1018
    • slipdex
Re: reply to:
« Reply #1 on: December 15, 2013, 06:24:21 PM »
Hi Dennis,

Thanks for the post. One thing first. Don't EVER post the entire script so it is visible in the forum. we only need the options section.

You question is easy. There is a part in the advanced settings:

Code: [Select]
# Advanced Settings From Field Name
my $from_field_name          = 'Email';
my $from_field_name_error    = "Data Error in $from_field_name";

Simply change the name of the field (in the script's case 'Email') that contains the users e-mail address in the my $from_field_name = 'Email'; Then the e-mail will appear to come from the user.

As a side note, you may want to also make use of the advanced settings that require a valid e-mail address within the form. That way you are sure to get a valid address.

Jason
Founder of www.slipdex.com

Offline doppelt

  • Newbie
  • *
  • Posts: 5
Re: reply to:
« Reply #2 on: December 16, 2013, 10:29:39 PM »
thanks

I will not again send in the script

but I am not clear what I should change when I get a form response email, and I ise the reply button,
I want it to go back to the email address of the person who filled out the form

so you said to use this section:
----------------------------
# Advanced Settings From Field Name
my $from_field_name          = 'Email';
my $from_field_name_error    = "Data Error in $from_field_name";

------------------------------


but I do not understand what I change it to exactly?

can I delete this post so my script is not showing anymore (after I fix my issue) ?
thanks
Dennis

Offline doppelt

  • Newbie
  • *
  • Posts: 5
Re: reply to:
« Reply #3 on: December 16, 2013, 10:36:58 PM »
sorry

1 last query (I hope)

the changes you mention and what I am confused about, are they to be made in the script itself?
or on the form page

here is the form page I use to run the script:
http://www.fincacaballoloco.com/contact-us.shtml


thanks
Dennis

Offline Jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 1018
    • slipdex
Re: reply to:
« Reply #4 on: December 17, 2013, 05:43:35 AM »
Hi Dennis,

Yes, the script gets changed. I tried looking at your source code of your webpage there but it is a little jumbled.

Go into your script and find this section:
Code: [Select]
# Advanced Settings From Field Name
my $from_field_name          = 'Email';
my $from_field_name_error    = "Data Error in $from_field_name";

In the my $from_field_name option change 'Email' to whatever form field in your form contains the user's e-mail address. I cannot see your form in the source code of your webpage so I do not know what that form field is called within your form.

You can find all the instructions on the website: http://www.ezscripting.com/form2email/instructions.htm#Set-up%20the%20script That is the link to the Script setup and you can scroll down to the Advanced Settings From Field Name section.

Jason
Founder of www.slipdex.com

Offline doppelt

  • Newbie
  • *
  • Posts: 5
Re: reply to:
« Reply #5 on: December 17, 2013, 09:50:55 AM »


thanks
sorry about the form, I sent you a link to the encrypted page
the one you can see the code on is:
file:///C:/websites/fincacaballoloco/contactustocode.htm
it does not look good because its just the code, no css

I checked and the setting I have right now it seems to already say "email' in the part you asked me to change, and same with the instructions,

this is what it says now:

##################################################################################
# Advanced Settings From Field Name
my $from_field_name          = 'Email';
my $from_field_name_error    = "Data Error in $from_field_name";
##################################################################################

and in my form, the line for getting a person's email is:
* Email: <INPUT TYPE="text" NAME="email" SIZE=60><BR>

the only difference is one has a cap for 'email' and one does not
??

thanks
Dennis

Offline Jason

  • Administrator
  • Hero Member
  • *****
  • Posts: 1018
    • slipdex
Re: reply to:
« Reply #6 on: December 17, 2013, 03:30:18 PM »
Hi Dennis,

The capital 'E' makes a SIGNIFICANT difference. It needs to match exactly. You can also try changing this line of YOUR script that you already posted:

Code: [Select]
my $from = 'fincacaballoloco@gmail.com';
To:

Code: [Select]
my $from = '';
Basically clear out the e-mail address in that option. It should go thru then. If it does not I might be stuck because it looks like you are using a windows server based on the file location you gave for your webpage (the public cannot access that by the way). If you are on a windows server, it might have something to do with how it handles the script options.

Jason
« Last Edit: December 17, 2013, 03:32:09 PM by Jason »
Founder of www.slipdex.com

Offline doppelt

  • Newbie
  • *
  • Posts: 5
Re: reply to:
« Reply #7 on: December 17, 2013, 10:36:11 PM »

yes
that worked

thanks
Dennis