I've been having unable to get the TCH Autoresponder to send an autoresponse to the form recipient's email. However, the Autoresponder works perfectly if I send an email directly from my email client. I have programmed the PHP sendmail script to work in conjunction with the Flash at my client's website, lafamiglia.com (the forms can be found at the following pages within the site: Comments, Contact, Reservation)
The following is the response I received from the TCH Help Desk in regards to my issue:
The mails that is generating from the php/cgi mail forms as "nobody@habs.tchmachines.com" - not with any other specific email. The auto responder is trying to send out to this mail account nobody@habs.tchmachines.com and it will not work
Please see the mail logs of a mail that is generated from Contact form
2009-01-18 21:51:11 1LOkEJ-000679-2J <= nobody@habs.tchmachines.com U=nobody P=local S=640
2009-01-18 21:51:11 no host name found for IP address 118.175.22.202
2009-01-18 21:51:11 1LOkEJ-000679-2J => reservation <****@lafamiglia.com> R=virtual_user T=virtual_userdelivery
2009-01-18 21:51:11 1LOkEJ-000679-2J => webmaster <****@lafamiglia.com> R=virtual_user T=v
There is upgraded version of mail script available that will generate mails as a real user than "nobody" - then you can set auto responder for that.
I'm not really sure how to get this to work or how to upgrade the script. Anybody have any ideas? Here is the PHP script that I am using:
<?php
$search = array('&', 'ñ', 'Ñ', 'á', 'é', 'í', 'ó', 'ú', 'Á', 'É', 'Í', 'Ó', 'Ú');
$replace = array('&', 'ñ', 'Ñ', 'á', 'é', 'í', 'ó', 'ú', 'Á', 'É', 'Í', 'Ó', 'Ú');
$fecha = date("D-M-y H:i");
$mymail = "****@lafamiglia.com, ****@lafamiglia.com";
$subject = "Website Comment";
$contenido = "Name: ".$_POST["name"]."\n";
$contenido .= "Email: ".$_POST["email"]."\n\n";
$contenido .= "Comment: ".$_POST["comment"]."\n\n";
$contenido .= "The message was wrote ".$fecha;
$contenido = str_replace($search, $replace, $contenido);
$header = "From:".$_POST["name"]."\nReply-To:".$_POST["email"]."\n";
$header .= "X-Mailer:PHP/".phpversion()."\n";
$header .= "Mime-Version: 1.0\n";
$header .= "Content-Type: text/plain";
mail($mymail, $subject, utf8_decode($contenido) ,$header);
echo "&estatus=ok&";
?>