Jump to content

php mail help


skippy111

Recommended Posts

here is the script I use and it always worked fine.  It still works but I can no longer pass data to it in the url.

 

lets say I named it test.php      I used to be able to do  site.com/test.php?data=nnnnn

 

The email I would recieve after visiting the php would include data=nnnnn 

 

Its like the script cant allow get request data.  It always has.  Has there been a change in PHP to not allow it anymore ?

 

 

<?php

 

$email = "[email protected]";

 

$continue = "http://www.yahoo.com";

 

$subject = "FormToEmail Comments";

$message = "From: $name\nEmail address: $formemail\n\n$comments\n\n-\nA Friend in Need is a Friend indeed \n-------";

$headers = "From: " . $formemail . "\n" . "Return-Path: " . $formemail . "\n" . "Reply-To: " . $formemail . "\n". $_SERVER['REMOTE_ADDR']."\n";

 

mail($email,$subject,$message,$headers);

 

?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/116801-php-mail-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.