childers_don
Joined: 28 Mar 2010 Posts: 1
|
Posted: Mon Apr 19, 2010 2:03 pm Post subject: Form working with yahoo server |
|
|
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 |
|