Anyone know why this PHP code below
is sending 2 auto-responses?
1 response is what I want and you can see how I've configured it in the code. The second one goes something like:
Thank you.
Your request has been submitted.
Me
Any help would be appreciated.
Thanks
Phpete2
<?
/**
aFormMail script - sending mail via form
Author: Alex Scott
Email: alex@cgi-central.net
Web: http://www.cgi-central.net
Details: The installation file
FileName $RCSfile: aformmail.php,v $
Release: 1.1 ($Revision: 1.6 $)
Please direct bug reports,suggestions or feedback to the cgi-central forums.
http://www.cgi-central.net/forum/
aMember is free for both commercial and non-commercial use.
Re-distribution of this script without prior consent is strictly prohibited.
/
/**************************************************************************
C O N F I G U R A T I O N
**************************************************************************/
// email for send submitted forms //////////////////////////////////////////
// if empty, use value from form ('send_to' field)
$send_to = "Omcal <me@mysite.com>";
// set $send_cc address if you need copy of mail to other addresses
// for example: $send_cc = array('friend1@ccc.cc', 'friend2@ccc.cc');
//
$send_cc = array();
// Subject. if empty, use value from form ('subject' field)
$subject = "";
// Allowed Referres. Should be empty or list of domains
$referrers = array();
// Attachments
$attachment_enabled = 0;
////// Database - write CSV file with data of submitted forms //////////////
$database_enabled = 0;
$database_file = 'email.csv';
// Fields to collect
// $database_fields = '' - mean all fields, as in form
// $database_fields = array('from', 'subject') - only 'from', 'subject' fields
$database_fields = '';
////// Redirect user after submitting form
$redirect_url = 'http://www.omcal.com/thanks.html';
////// Auto-Responder
////// You can substitute any of form fields in response by using
////// %field_name% in response text.
//////
$autoresponder_enabled = 1;
$autoresponder_from = $send_to;
$autoresponder_subject = "%subject% (autoresponse)";
$autoresponder_message = <<<MSG
Hi %name_from%,
Your Warranty request concerning: %model_req% has been submitted.
The following parts have been requested: %parts_warranty_description_req%
If you have questions, or need further assistance please call (XXX)XXX-0985.
Thank you for your request.
Respectfully,
ME
MSG;