Avatar of dlearman1
dlearman1
Flag for United States of America asked on

How to eliminate "realname" and "email" from formMail.php (tectite.com) results.

When I submit a test form the return email has the following message above the actual form results. The form results are actually good. They just have this error message above them:

"To: doug@pricelearman.com
From: FormMail@www.familytofamilyseniorcare.com

The following error occurred in FormMail :
missing_fields
Error=The form required some values that you did not seem to provide.
Your email address
Your name

email: wD@GMAIL.COM
realname: wefRwqe"

Tectite doc's indicate this info can be excluded from the form results by using:

<input type="hidden" name="mail_options" value="Exclude=email,realname">
but this doesn't seem to work.

Does anyone know how to delete this content from the form results? I have attached a pdf of an actual results email. The formMail script is at http://www.familytofamilyseniorcare.com/sendForm.php. The HTML form is on the page at  http://www.familytofamilyseniorcare.com/contact.htm.
FormMail-results.pdf
HTMLPHPEmail Software

Avatar of undefined
Last Comment
dlearman1

8/22/2022 - Mon
Ray Paseur

I've never heard of anyone using Tectite.  Please post the PHP source code here in the code snippet so we can see what is going on.

There appear to be two HTML forms in your contact.htm page.  The bottom one, for Google Maps, is probably irrelevant.  The top one, stripped of all the cruft, contains this.
<form class="form item" method="post" action="http://www.familytofamilyseniorcare.com/sendForm.php" name="contactForm">
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER" />
<input type="text" class="form-control input-lg" name="inputName" id="inputName" placeholder="name:" required>
<input type="email" class="form-control input-lg" id="inputEmail" name="inputEmail" placeholder="email:" required  >
<input type="text" class="form-control bfh-phone input-lg" data-format="+1 (ddd) ddd-dddd"  id="inputPhone" name="inputPhone" placeholder="phone:" >
<textarea name="comments" id="comments" class="form-control" placeholder=" how can we help you?" rows="4"></textarea>
<button id="contactButton" type="submit" class="btn btn-default btn-md">SEND</button>
<input type="hidden" name="recipients" value="request@familytofamilyseniorcare.com, doug@pricelearman.com" />
<input type="hidden" name="subject" value="Message From A Website Visitor" />
<input type="hidden" name="derive_fields" value="email=inputEmail,realname=inputName" />
<input type="hidden" name="mail_options" value="Exclude=email,realname;FromAddr=Website Visitor">
</form>

Open in new window

As you can see, the mail_options control contains value="Exclude=email,realname;FromAddr=Website Visitor".  This seems to conflict with what you wrote about Tectite docs, to wit, value="Exclude=email,realname" so my first recommendation would be to try using this input control exactly as Tectite recommends, without the extra stuff.
ASKER CERTIFIED SOLUTION
Ray Paseur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dlearman1

ASKER
Ray... Thanks for your comments. We have been using formmail.php for at least a century. It is old and out-of-date, but then it only has to interface with nothing more demanding than email  But, you're right we should be looking into a more current product.  Do you have any in mind worth checking out?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck