I am a woodworker married to a painter - although i can build a basic web site and maybe a Flash page this is Way outa my league!
For Lois' web site we purchased the rights to an XML template. It works well except for the "contact page"
www.studiopaintings.com
I contacted the person who we bought the site from at flashcomponents.net ant they said it was a PHP problem with our webhost, and they could not help.
I cannot figure out where to start, Or if this is even the right forum to ask in??
The send_message.php file they provided is below.
I did enter a valid email address from our Yahoo hosted website so I stopped getting the following message in my .tmp file
2009 Sep 25 04:30:19 Result: 9
2009 Sep 25 04:30:19 From address not in member domain. Message not sent.
BUT now the message just seems to go nowhere. No error return, nor any sent...
Any help would be greatly appreciated. If someone needs some beer money to help with this I can certainly send it.
I can be contacted at bob at schlowsky . com
Thank you
Bob
send_message.php
<?php
$name_txt = $_POST['nume_txt'];
$tel_txt = $_POST['phone'];
$email_txt = $_POST['email_txt'];
$msg_txt = $_POST['mesaj_txt'];
$contact_form_title = "DEMO CONTACT FORM";
$contact_form_subject = "CONTACT FORM SUBJECT";
$email_to_send = "loisromeischlowsky@schlowsky.com";
$message = "Name:".$name_txt."\nPhone:".$tel_txt."\nEmail:".$email_txt."\nMessage:".$msg_txt;
_send_mail($email_to_send, $contact_form_title, $contact_form_subject, $message);
function _send_mail($mailto, $contact_form_title, $subject, $message) {
$header = 'From: '. loisromeischlowsky@schlowsky.com . "\r\n" .
'Reply-To: loisromeischlowsky@schlowsky.com' . "\r\n" .
'X-Mailer: PHP/';
if (mail($mailto, $subject, $message, $header)) {
echo 'sent=OK&dum=nimic';
} else {
echo 'sent=ER&dum=nimic';
}
}
?>
by
3 Replies