tramadius Posted January 19, 2009 Posted January 19, 2009 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&"; ?> Quote
TCH-Bruce Posted January 19, 2009 Posted January 19, 2009 You need to have your script send email as a real user and not the webserver "nobody". >mail($mymail, $subject, utf8_decode($contenido) ,$header, -f"real-email-address"); Quote
tramadius Posted January 19, 2009 Author Posted January 19, 2009 You need to have your script send email as a real user and not the webserver "nobody". >mail($mymail, $subject, utf8_decode($contenido) ,$header, -f"real-email-address"); Thanks. I realize that I need to have the script send email as a real user. I'm just not sure how to go about it... Quote
tramadius Posted January 19, 2009 Author Posted January 19, 2009 You need to have your script send email as a real user and not the webserver "nobody". >mail($mymail, $subject, utf8_decode($contenido) ,$header, -f"real-email-address"); Oooh, it's too early. Now I see it. Thanks for forwarding that! I'll give it a try. Quote
tramadius Posted January 19, 2009 Author Posted January 19, 2009 Oooh, it's too early. Now I see it. Thanks for forwarding that! I'll give it a try. I tried inserting -f"real-email-address" but it causes the form to fail (I replaced "real-email-address" with an actual email address). Am I doing something wrong? On another note, is there anyway to remove the two email addresses I mentioned in the original post? I believe the spam bots are already picked up on them. Quote
TCH-Bruce Posted January 19, 2009 Posted January 19, 2009 I think I made a mistake with the command. Move the quote to the left of the -f >mail($mymail, $subject, utf8_decode($contenido) ,$header, "-freal-email-address"); I have edited your first post (email addresses) Quote
tramadius Posted January 19, 2009 Author Posted January 19, 2009 I think I made a mistake with the command. Move the quote to the left of the -f >mail($mymail, $subject, utf8_decode($contenido) ,$header, "-freal-email-address"); I have edited your first post (email addresses) Thanks. The form works now. However, still no autoresponder coming through. Do I need to put an actual email address in this snippet "-freal-email-address" ? Quote
TCH-Bruce Posted January 19, 2009 Posted January 19, 2009 Yes, you need to put an actual email address in there. So it would be "-fyou@your-domain.ext" Quote
tramadius Posted January 19, 2009 Author Posted January 19, 2009 Yes, you need to put an actual email address in there. So it would be "-fyou@your-domain.ext" Thanks again. I implemented it but it's still a no go on the autoresponder. The form comes through fine but no autoresponse is received. Strange... Quote
tramadius Posted January 19, 2009 Author Posted January 19, 2009 It may be that it's not possible. I've seen autoresponders work on other Flash sites. I suppose I'll have to keep looking. Quote
tramadius Posted January 20, 2009 Author Posted January 20, 2009 I've seen autoresponders work on other Flash sites. I suppose I'll have to keep looking. Does anyone know of any other resources that I can pursue? I've looked on quite a few discussion groups and forums but I don't see anyone else having this issue. Thanks. Quote
TCH-Dick Posted January 20, 2009 Posted January 20, 2009 Have you updated your ticket and had the techs check the mail logs since you have made the recent changes? Having them check again will let you know if the change had any affect. Quote
tramadius Posted January 20, 2009 Author Posted January 20, 2009 Have you udpated your ticket and had the techs check the mail logs since you have made the recent changes? Having them check again will let you know if the change had any affect. No I haven't. I'll go ahead and give that a try. Thanks. Quote
tramadius Posted January 20, 2009 Author Posted January 20, 2009 Have you udpated your ticket and had the techs check the mail logs since you have made the recent changes? Having them check again will let you know if the change had any affect. I went ahead and updated the ticket with a request to check the log. Please keep in mind that I only implemented the suggested fix for the Contact form only. The Reservation and Comment forms still have the old code. Thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.