View Full Version : No more forms are working :(
andam3
08-13-2006, 01:03 AM
Hi from Sunny Thailand
Our booking forms do not work anymore (it was a php script)
I have try to re-set up the form propertie with the path
/cgi-bin/cgiemail/"myfile.txt"
but permanent error message ... :confused:
We are not expert... so if somebody can give us help, we can get some customers for the next few months
thanks anyway :)
areidmtm
08-13-2006, 01:12 AM
lets see some code...
andam3
08-13-2006, 01:21 AM
lets see some code...
So fast - Thanks !
------
www.andamanscuba.com/booking.htm
(the previous php script was working correctly untill ... few days)
so I have removed it and try to set up the form with the propertie
send to other : custom ISAPI, NSAPI, CGI, or ASP sript
options : /cgi-bin/cgiemail/booking.txt
method : POST
* the error message =
No email was sent due to an error.
500 sendmail exit 7 with error message
220-box5.bluehost.com ESMTP Exim 4.52 #1 Sun, 13 Aug 2006 01:05:31 -0600
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
250-box5.bluehost.com Hello localhost [127.0.0.1]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
250-box5.bluehost.com Hello localhost [127.0.0.1]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
501 : sender address must contain a domain
cgiemail 1.6
thanks again :)
andam3
08-13-2006, 01:39 AM
and the php script was :
<?
################################################## ############################
# Nvsmail -V1.0 #
# Created 4/07/2002 #
# Autor : webmaster@netventis.com #
# Url : http://www.netventis.com #
################################################## ############################
# #
# type your e-mail address below #
$mymail = "info@andamanscuba.com" ;
# email title
$subject = "Information Request" ;
# page to redirect your visitor
$thanks = "http://www.andamanscuba.com/confirmation.htm" ;
# Only the url below wil be able to use this scipt
$refer = array("andamanscuba.com","www.andamanscuba.com");
################################ END OF SETU #################################
################################################## ############################
########################## DON'T MODIFY THE CODE BELOW ##################
################################################## ############################
$urlpost = split('/',$HTTP_REFERER);
foreach ($refer as $rf ){
if($rf == $urlpost[2]){
$accept = 'y';
}
}
################################################## ############################
########################### FONCTION ACCES DENIED ###########################
function nopost(){
print '<html>
<head><title>accès refusé</title>
</head>
<body bgcolor="#ffffff">
<br><br><div align="center"><b>Vous n\'avez pas accès à ce script, veuillez contacter le webmaster</b><br>
<a href="javascript:history.back();">Cliquez ici pour revenir au formulaire</a></div>
</body></html>';
}
################################################## ############################
############################# DATA / E-MAIL SENDING ##########################
if( $accept == 'y'){
class form {
var $post;
function recept(){
global $HTTP_POST_VARS, $mymail, $thanks, $subject, $message;
foreach ($HTTP_POST_VARS as $key=>$result){
if($key != 'B1' && $key != 'success' ){
$result = stripslashes($result);
$post->$key = $result ;
}// if
}
################################################## ############################
################################## BODY MESSAGE ##############################
$message = "Name : $post->name
e-mail : $post->email
Tel : $post->tel
Fax : $post->fax
Address : $post->address1
$post->address2
Request : $post->request
Cruise : $post->cruise_number
Pax Diver : $post->pax_cruise_diver
Pax non Diver : $post->pax_cruise_non_diver
Daytrips : $post->pax_daytrips
daytrip1 $post->daytrip1
daytrip2 $post->daytrip2
daytrip3 $post->daytrip3
daytrip4 $post->daytrip4
daytrip5 $post->daytrip5
daytrip6 $post->daytrip6
daytrip7 $post->daytrip7
cmas $post->cmas
Pax cmas $post->pax_cmas
naui $post->naui
Pax naui $post->pax_naui
padi : $post->padi
Pax padi : $post->pax_padi
iantd : $post->iantd
Pax iantd : $post->pax_iantd
professional : $post->professional
Pax professional : $post->pax_professional
hotel $post->hotel
room type $post->room_type
check-in $post->check_in
check-out $post->check_out
airport_transfer : $post->airport_transfer
flight number : $post->flight_number
arrival : $post->arrival_date
Comments:
$post->comments";
# Page bottom
$copy = "\n--------------------------------------------------\n 2006 http://www.andamanscuba.com \n";
# Send E-mail
mail($mymail,$subject,$message.$copy,"From: $post->email");
# redirect
header('location: '.$thanks);
}//fonction end
}//class end
$affich = new form();
$affich->recept();
}
else{
nopost();
}
################################################## ############################
############################ SCRIPT END ######################################
################################################## ############################
?>
areidmtm
08-13-2006, 12:58 PM
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
501 : sender address must contain a domain
It says why it wont send right in the error message.
andam3
08-13-2006, 01:14 PM
It says why it wont send right in the error message.
Yes it says that - (I can read it also) :
1 - transport unsollicited ?
lol - it's a booking form filled by the user (the client) :D
2 - bulk e-mail ?
same same above :D
3 - sender address must contain a domain
it contains it ! (e-mail address is a compulsory field)
-=-=-
So now my question is :
Do this booking form can work with bluehost ?
Is it any solution to make it work ?
What we should have to do ?
Beside I spend few time with the support by phone (from Thailand not quite cheap) and they are unable to help us.
(sorry) Should we find another hosting - because we are losing customer every day and our season will start in october.
Thanks again :)
admin
08-13-2006, 02:23 PM
Your script is old and our email is VERY strict on what it requires for sending mail. If you were on a generic sendmail box you don't have to do all the required email headers and it will still send, but because of CONSTANT abuse on our system you must meet all the requirements for sending email using our system. That means all the email headers not just the to: and an email address. That is why it doesn't work. Telling you all the headers is a little beyond this email, but look on the web for php scripts that support ALL the mail headers. If you populate it correctly it will send fine.
Matt
areidmtm
08-13-2006, 03:00 PM
take a look at php mailer (http://phpmailer.sourceforge.net/).
andam3
08-14-2006, 11:01 AM
Yes we understand he use of the script by spamers ...
So finally we called again the support and got in contact with a very friendly and comprehensive operator who made a very good job et helped us setup the form with bluemail.
It works now!
Thanks for your help and to bluehost support :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.