Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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?

0
Posted

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?

0

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.

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.