ich habe gerade den Shariff-Wrapper installiert und habe nun folgendes Problem:
Wenn ich mein Problem nicht ausreichend genug geschildert habe, dann lasst mich wissen, welche Informationen noch notwendig sind.
Gibt es ein Workarround für mich und meine Seite?
Gru?
MAW
Ich habe das Mailform aktiviert, leider bekomme ich nur wei?en Text auf wei?em Grund angezeigt. Mailform
Sicherlich wird es mein Theme (canvas von woo) irgendwie mit dem CSS von Shariff kollidieren. Ich habe aber keine Ahnung, wo ich das einstellen k?nnte. Wenn ich die Hintergrundfarbe des Shariff-Mailforms oder die dort angezeigte Schriftfarbe ?ndern k?nnte, w?re das super!
]]>I have lists of people on different pages. When I click on them I want the link to redirect to a mailform to that person.
Is there an easy way or do I have to make like 16 different cforms?
]]>I got WordPress working OK on our website.
With one exception…
I’m trying to get a feedback form on our website to work. Here’s the .PHP code:
<?php
// require_once "Mail.php";
$from = "[email protected]";
$userfrom = Trim(stripslashes($_POST['email']));
$to = "[email protected]";
$subject = "Website Feedback";
$fname = $_POST['firstname'];
$lname = $_POST['lastname'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];
$postcode = $_POST['zipcode'];
$tel = $_POST['telephone'];
$fax = $_POST['fax'];
$message = $_POST['message'];
$host = "mailhub.registeredsite.com";
$username = "[email protected]";
$password = "ELIDED";
// validation
$validationOK=true;
if (Trim($userfrom)=="") $validationOK=false;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">";
exit;
}
// prepare email body text
$Body = "";
$Body .= "First Name: ";
$Body .= $fname;
$Body .= "\n";
$Body .= "Last Name: ";
$Body .= $lname;
$Body .= "\n";
$Body .= "Address: ";
$Body .= $address;
$Body .= "\n";
$Body .= "City: ";
$Body .= $city;
$Body .= "\n";
$Body .= "State: ";
$Body .= $state;
$Body .= "\n";
$Body .= "ZIP Code: ";
$Body .= $zipcode;
$Body .= "\n";
$Body .= "Telephone: ";
$Body .= $tel;
$Body .= "\n";
$Body .= "Fax: ";
$Body .= $fax;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $userfrom;
$Body .= "\n";
$headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject);
$smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("" . $mail->getMessage() . "
");
} else {
echo("Message successfully sent!
");
}
?>
Of course, the password has been changed…
The ‘[email protected]’ is what Interland (web.com) said to put for the From: line, and the mail server is what they said to use.
Here’s the error I’m getting:
Warning: main(Mail.php) [function.main]: failed to create stream: No such file or directory in d:\Customers\user1234567\www\cgi-bin\contact.php on line 2
Fatal error: main() [function.main]: Failed opening required 'Mail.php' (include_path='.;c:\php4\pear') in d:\Customers\user1234567\www\cgi-bin\contact.php on line 2
Here’s what Interland support said (although it’s not very helpful to me, I’m afraid):
Please check and modify your scripts because these are the values you should be using:
Directive Local Value Master Value
sendmail_from [email protected] [email protected] sendmail_path no_value no_value
SMTP mailhub.registeredsite.com
smtp_port 25
Anyone have any ideas how to get this working?
Thanks.
]]>simple and easy
any suggest
thanks
]]>any suggest
thanks
]]>But it is not secure from spam. It offers no image recognition or logical question protection like this one or this one. Now the problem with those is they do not have the flexibility of the intouch plugin I mentionned first.
Would anyone care to do the wordpress community a big favour and improve the intouch plugin by integrating some decent spam protection into it ? I guess that would be the easiest way to go as other than that, I find that plugin to be already perfect except for that.
I think flexibility, ease of use and security would define the ultimate mail form plugin.
]]>