How can I edit the “Form2Mail.php” document so that when the email comes through, it has the email address and subject filled out from the user on the form, instead of the default values?
You can apply the following changes: Change #1: Subject, line #409: $emailsubject= $_POST[“name-of-the-subject-field-on-your-form”]; Change #2: From Name (add this one), line #145: $mail->FromName = $_POST[“name-of-the-name-field-on-your-form”]; Change #3: From Email, line #146: $mail->From = $_POST[“name-of-the-email-field-on-your-form”]; Replace the strings marked in red with the field names from your form.