All the other forms on my site are speedy but my mime mail form takes about a minute to process. I haven't had any luck searching for an answer to this question so I thought I'd post here.
What could be the problem? I'm using really basic code from the zend site. I suspect the problem is a simple one, but here is the code anyway:
<php>
if ($POST['name'] && $POST['email'] && $POST['message']) {
$to = "me@example.com";
$subject = "Mail from Website";
$message = "
<html>
<head>
<title>Info Request from Website</title>
</head>
<body>
<B>Name:</B> " . $POST['name'] . "<BR>
<B>Company:</B> " . $POST['company'] . "<BR>
<B>Email:</B> " . $POST['email'] . "<BR>
<B>Phone:</B> " . $POST['phone'] . "<BR>
<B>Method:</B> " . $POST['method'] . "<BR>
<B>Subject:</B> " . $POST['subject'] . "<BR>
<B>Other:</B> " . $POST['other'] . "<BR>
<B>Message:</B> " . $POST['message'] . "
</body>
</html>
";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From:" . $POST['email'] . "\r\n";
if (@mail($to, $subject, $message, $headers)) {
header("Location: index.php?action=mail&success=yes");
} else {
header("Location: index.php?action=mail&success=no");
}
} else {
header("Location: index.php?action=mail&success=no");
};
</php>
Thanks in advance!
Nelson