Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Mail Form only part working....
Old 01-12-2010, 07:05 AM Mail Form only part working....
Junior Talker

Posts: 2
Name: Steve
Trades: 0
Hi everyone, hope you can help me.

On my latest flash website, I have a contact page with an online contact form. Code here:

on (rollOver) {
gotoAndPlay("on");
}
on (rollOut) {
gotoAndPlay("off");
}
on (rollOver) {
gotoAndPlay("on");
}
on (rollOut) {
gotoAndPlay("off");
}
on (release) {
if (!_parent.Name.length) {
_parent.Status = "Name Required";
} else {
if (!_parent.Email.length || _parent.Email.indexOf("@") == -1 || _parent.Email.indexOf(".") == -1) {
_parent.Status = "Valid Email Required";
} else {
if (!_parent.Message.length) {
_parent.Status = "Message Required";
} else {
_parent.Status = "Message Sent!!";
name = _parent.name;
email = _parent.email;
phone = _parent.phone;
message = _parent.message;
loadVariablesNum("Mail_Form.php",0,'POST');
_parent.gotoAndPlay("submitted");
}
}
}
}


The PHP script I have is as follows (4.4.6):


<?php
phpinfo();
$name = $HTTP_POST_VARS['name'];
$email = $HTTP_POST_VARS['email'];
$phone = $HTTP_POST_VARS['phone'];
$message = $HTTP_POST_VARS['message'];

$name = stripslashes($name);
$email = stripslashes($email);
$phone = stripslashes($phone);
$message = stripslashes($message);

$rec_email = 'myemail@hotmail.com';
$subject = "Web Contact Form";

$msg_body .= "ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ \n";
$msg_body .= "Name: $name\n";
$msg_body .= "Phone Number: $phone\n";
$msg_body .= "E-Mail: $email\n";
$msg_body .= "Message: $message\n";
$msg_body .= "_____________________________________________ \n";

$header_info = "From: $email";
$sender = 'webquery@mywebsite.co.uk';
mail($rec_email, $subject, $msg_body, $header_info, '-f'.$sender);

?>

I tested the page on several machines and it appeared to work fine. However, the guy says it does not work when he or his colleagues try it.

I think it might be because they are not filling the full form in - can anyone read the code and tell me if that is what could be causing the issue?

Any suggestions on how to fix it?

Many thanks
Q4Legend is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-15-2010, 04:22 AM Re: Mail Form not working with HOTMAIL email address
Junior Talker

Posts: 2
Name: Steve
Trades: 0
Ahhh, after more investigations it transpires that whenever the online contact form is submitted by the user with a HOTMAIL email address, the email is never received.

Is there a reason why this would happen?

Any ideas how to resolves?

TIA
Q4Legend is offline
Reply With Quote
View Public Profile
 
Old 01-15-2010, 09:32 AM Re: Mail Form only part working....
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://postmaster.msn.com/Services.aspx#SenderSolutions
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Mail Form only part working....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17045 seconds with 12 queries