logged_with_bugmenot Posted November 29, 2006 Share Posted November 29, 2006 hi everyone. i switched to google apps where i have my mail go through the gmail interface instead of the crappy webmail ipowerweb (my hosting provider) offers me, and now this script ive pulled and have been using doesn't work! please let me know what I need to do. thanks so much!so in google apps, to use gmail interface for mail, i had to change my dns entry mx settings from 'mail' to 'ASPMX.L.GOOGLE.COM.'this worked perfect and now i use gmail for my mail, but now this script i have on my site so people can email me by filling in forms has died.original script that used to work:// Enter your email address here$adminaddress = "[email protected]";// Enter the address of your website here MUST include http://www.$siteaddress ="http://www.yahoo.com";// Enter your company name or site name here$sitename = "Yogi Bear";// Gets the date and time from your server$date = date("m/d/Y H:i:s");// Gets the IP Addressif ($REMOTE_ADDR == "") $ip = "no ip";else $ip = getHostByAddr($REMOTE_ADDR);//Process the form data!// and send the information collected in the Flash form to Your nominated email addressIF ($action != ""):mail("$adminaddress","Info Request","FAO: Admin @ $sitename \nFirst Name: $fnameLast Name: $lnameEmail: $vemailCompany: $cnameTelephone: $telno\nThe visitor commented:------------------------------$comments------------------------------Logged Info :------------------------------Using: $HTTP_USER_AGENTHostname: $ipIP address: $REMOTE_ADDRDate/Time: $date","FROM:$adminaddress");//This sends a confirmation to your visitormail("$vemail","Thank You for visiting $sitename", "Hi $fname,\nThank you for your interest in $sitename!\nRegards,$sitename$siteaddress","FROM:$adminaddress");//Confirmation is sent back to the Flash form that the process is complete$sendresult = "Done!";$send_answer = "answer=";$send_answer .= rawurlencode($sendresult);echo "$send_answer";ENDIF;?> Link to comment https://forums.phpfreaks.com/topic/28869-switched-to-google-apps-mail-and-now-my-script-is-dead/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.