memres25
New Member
- Messages
- 3
- Reaction score
- 0
- Points
- 0
Hello. It seems that the below code doesn't send the mails.
$today = date('d.m.Y');
$now = date('H:i');
$ip = getenv('REMOTE_ADDR');
$agent = getenv('HTTP_USER_AGENT');
$referer = getenv('HTTP_REFERER');
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
$to = "my@email.com";
$from = "From: $name <$email>";
$from2 = "From: Me <$to>";
$content = "Content for me";
$content2 = "Content for sender";
if ($email && $message)
mail($to, $subject, $content, $from); // to me
mail($email, $subject2, $content2, $from2); // to sender
I'll appreciate your help. Thanks.
$today = date('d.m.Y');
$now = date('H:i');
$ip = getenv('REMOTE_ADDR');
$agent = getenv('HTTP_USER_AGENT');
$referer = getenv('HTTP_REFERER');
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
$to = "my@email.com";
$from = "From: $name <$email>";
$from2 = "From: Me <$to>";
$content = "Content for me";
$content2 = "Content for sender";
if ($email && $message)
mail($to, $subject, $content, $from); // to me
mail($email, $subject2, $content2, $from2); // to sender
I'll appreciate your help. Thanks.