webformdesigner.com Forum Index webformdesigner.com
The easy way to produce forms for your web pages
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Form working with yahoo server

 
Post new topic   Reply to topic    webformdesigner.com Forum Index -> Web Form Designer
View previous topic :: View next topic  
Author Message
childers_don



Joined: 28 Mar 2010
Posts: 1

PostPosted: Mon Apr 19, 2010 2:03 pm    Post subject: Form working with yahoo server Reply with quote

Having trouble getting the form to email

I emailed to yahoo the following:
I'm using site spinner pro to build my site and Webformdesigner for form to mail usage. I've also created a php file to handle the mailing. The following java script gets a "Sorry, Method Not Allowed.
The requested method is not allowed for this URL". the java script is in a file on the yahoo server called formscript.txt and the php file is called formtomail. Thank you in advance for youe assistance.

They wrote back:
I checked the error logs and have attached it below. Please contact application support at Webformdesigner to fix the error.

2010 Mar 28 20:02:30 Result: 9
2010 Mar 28 20:02:30 From address not in member domain. Message not sent.
2010 Mar 28 20:02:51 Result: 9
2010 Mar 28 20:02:51 From address not in member domain. Message not sent.
2010 Mar 28 20:05:45 Result: 9
2010 Mar 28 20:05:45 From address not in member domain. Message not sent.
2010 Mar 28 20:09:12 Result: 9
2010 Mar 28 20:09:12 From address not in member domain. Message not sent.
I put the following php script on the server:
<?php
// FORM TO EMAIL Dec 27th 2005
// http://www.webformdesigner.com
// The following variables can be changed to suit

// NOTE: In order for the resulting mail message to you to contain the
// relevant information, your form should ideally contain, amongst others,
// two fields called "name" and "email" respectively (note lower case)
// for capturing the user's name & email address

// Change this to the email address where the message is to be sent
$your_email = "admin@guaranteedelectricalservices.com";

// This is the return URL after the form has been processed
$thankyou = "thankyou_page.html";

// This is what is displayed in the email subject line
// Change it if you want
$subject = "Work Order Form";


// You shouldn't need to edit below this line
// ---------------------------------------------
$name = trim(stripslashes($_POST['name']));
$email = trim(stripslashes($_POST['email']));
$year = date("Y");
$month = date("m");
$day = date("d");
$hour = date("h");
$min = date("i");
$tod = date("a");

// Timestamp this message
$TimeOfMessage = date('d')."/".date('m')."/".date('y')."(".date('D').") @ ".date('H:i');

// finally, send e-mail
$ip=$_SERVER["REMOTE_ADDR"];
$message = "The following was sent on " .$TimeOfMessage."\n";
$message .= "---------------------------------------------------------\n";

// send the complete set of variables as well
while (@list($var,$val) = @each($_POST)) {
if (is_array($val)){
$temp = '';
foreach($val as $newval){
$temp .= "$newval ";
}
$message .= "$var: $temp\n";
} else {
$message .= "$var: $val\n";
}
}

// send the email
mail($your_email, $subject, $message, "From: $name <$email>");

// go to return URL
if (isset($thankyou)) {
header("Location: $thankyou");
exit();
}



?>
_________________
Don
Back to top
View user's profile Send private message Visit poster's website
mccifa



Joined: 04 Jul 2007
Posts: 28

PostPosted: Tue Apr 27, 2010 3:23 pm    Post subject: Reply with quote

Have you asked on the SS forum? Larryd is brilliant with such things and may well be able to sort you out PDQ!

mccifa
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    webformdesigner.com Forum Index -> Web Form Designer All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group