My Mail() Script problem..

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
shimmyshine
-


Joined: 01 Jul 2006
Posts: 17

PostPosted: Wed Aug 02, 2006 2:17 am    Post subject: My Mail() Script problem.. Reply with quote

Quote:
<?
$emailn = $_POST['emailn'];
$emaila = $_POST['emaila'];
$usrnm = $_POST['usrnm'];

mail("$emailn", "Myspace Contact Generator", "$emaila", "From: $usrnm");
header("Location: http://24.144.125.82:2000/Myspace_Generators/contactgn2.php");
?>


I am sure this is a simple problem.. But I can't figure it out..

Should it be this :
Quote:
<?
$emailn = $_REQUEST['emailn'];
$emaila = $_REQUEST['emaila'];
$usrnm = $_REQUEST['usrnm'];

mail("$emailn", "Myspace Contact Generator", "$emaila", "From: $usrnm");
header("Location: http://24.144.125.82:2000/Myspace_Generators/contactgn2.php");
?>


Because neither of them work.. :(

Thanks

ShimmyShine
Back to top View user's profile Send private message
senshi
-


Joined: 05 Nov 2003
Posts: 385
Location: UK

PostPosted: Sun Aug 06, 2006 9:20 pm    Post subject: Reply with quote

mail($recipients, $subject, $message,"From: $email\r\n"."X-Mailer: PHP/" . phpversion());

Is something I found in an example which may help you.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group