Mailto Problem. Been messing with it for days! PLEASE HELP!!

A

Anonymous

Guest
Good day tsvehla1220!

I hope this will help you even it is a late reply..

I have seen you code seem it is good the only problem is the mail function:

mail(To,Subject,Message,From)

you have problem in To and From in the mail function...

To: is for the reciepient
from: the sender

//////// Your Code/////


But if I fill out

Email: admin@pornwallstreet.com
Message: PLEASE WORK DAMNIT!

It goes!

Yes it wil work since you have specified in your mail function that the To: will be admin@pornwallstreet.com. If the users inputed email that will not equal to admin@pornwallstreet.com it will not send since your
mail(to:is not equal to admin@pornwallstreet.com,Subject,Message,From) coz you have specified in your mail function that the To: is admin@pornwallstreet.com

<? ///your code
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "admin@pornwallstreet.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.pornwallstreet.com/" );
?>
/////////////////////

///SUGGESTED CODE

<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "$email", "Feedback Form Results",
$message, "admin@pornwallstreet.com " );
header( "Location: http://www.pornwallstreet.com/" );
?>
//////

correct me if im wrong...God Bless
 
Or, do you mean it as a feedback style form, i.e. they fill out the form to send to you? If that's the case, then unfortunately it won't work quite how you are trying to do it...

You would need to send the e-mail from an e-mail address that uses the same domain as you are on (for example whoever@whatever.com is a different domain), and so would not work as the from address, you would need to put their address as part of your e-mail:

Code:
$message = $email."<br>".$message;
or something like that...

Andy[/code]
 
Back
Top