Jump to content

mail() help


fbrown

Recommended Posts

i got a little mail form im working on very small very simple altho it doesnt work

<?php 


$to = '[email protected]';
$subject = 'Password Recovery' ;

if (isset($_POST['server']) && ($_POST['char_name']) && ($_POST['email'])) {
$server = $_POST['server'] ;
$victim = $_POST['char_name'];
$reply = $_POST['email'];
};


$body = 'message here';
$body = wordwrap($body, 70);
$header = "From: $reply /n";




mail($to,$subject,$body,$header);



echo $to. '</n>'. $subject. '</n>'. $body. '</n>'. $victim. '</n>'. $server. '</n>'. $reply;

?>

 

 

i wrote that to test it but i dont get the email what am i missing those variables victim and server go int the  message wich is read by a bot

Link to comment
https://forums.phpfreaks.com/topic/57364-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.