Jump to content

Mailing help?


TheorizedGaming

Recommended Posts

I get a server error when doing this form heres all the code:

<?php
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email = $_POST['email'];
$username = $_POST['username']
$subject = "New Application!";
$message = "Hello, $first_name $last_name has just left us a form";
mail($to, $subject, $message, "From: " , $first_name . $last_name);
echo "Your message has been sent!";
 
?>
 
The error is at line 6($to)? Could someone help me?
Link to comment
https://forums.phpfreaks.com/topic/280924-mailing-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.