|
Posted by wallster on 02/08/07 16:14
I have four php files sitting on my server (web.com) that work with
four separate website contact pages. They're very simple, name, email,
& message. They all worked perfect until a few days ago. I phoned
web.com and they admitted that there is a problem (after 25 minutes of
checking out my stuff... understandably) and they said within 24 hours
a software engineer will repair the problem. Two days later, it's
still not working so i sent them a "repair ticket" through their site.
They emailed me back minutes later and said they checked the scripts
in question and they worked fine, maybe my email address (email
server) didn't accept third person messages. Fine, I changed the php
script to another email address (on a different server), nothing
still. One more time to another email address on yet another server
and still, no message from the php page.
I'm spinning my wheels here and calling again, sitting on the line and
trying to understand the "tech" through whatever accent is a nigtmare.
Any other suggestions?
Here's the code i'm using:
----------------------------------------------------------------------------------------------------------
<?php
if(!$visitormail == "" && (!strstr($visitormail,"@") || !
strstr($visitormail,".")))
{
echo "<h2>Go Back - Enter valid e-mail</h2>\n";
$badinput = "<h2>Message was NOT submitted</h2>\n";
echo $badinput;
}
if(empty($visitor) || empty($visitormail) || empty($attn) ||
empty($notes )) {
echo "<h2>Must fill in ALL fields - Message not sent</h2>\n";
}
$todayis = date("l, F j, Y, g:i a") ;
$attn = $attn ;
$subject = $attn;
$message = " $todayis [EST] \n
Subject: $attn \n
Message: $notes \n
From: $visitor ($visitormail)\n
";
$from = "From: $visitormail\r\n";
mail("my_address@adelphia.net", $subject, $message, $from);
?>
-------------------------------------------------------------------------------------------------------
I realize there's no error scripting but that isn't a problem for me
(well until now!)
Thanks in advance.
wally
Navigation:
[Reply to this message]
|