Hello: I'm new here. I'm using FormMail.pl for the first time.

I want to send a confirmation email to the person who submitted the form. I enabled the $send_confirmation_mail to 1 and I'm receiving the confirmation.

I want to include the results of the form fields in the body of this confirmation email. I can't seem to figure out how to do it.

Can someone help me out? Thank you in advance.

Here is the section of the FormMail.pl where I need to stick the form field results (I have three: name, email, and phone):

BEGIN { $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 5; $mailprog = '/usr/sbin/sendmail -oi -t'; $postmaster = ''; @referers = qw(fullfocusdesign.com); @allow_mail_to = qw(info@fullfocusdesign.com); @recipients = (); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USE +R_AGENT); $locale = ''; $charset = '/usr/sbin/sendmail -oi -t'; $date_fmt = '/usr/sbin/sendmail -oi -t'; $style = '/usr/sbin/sendmail -oi -t'; $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $send_confirmation_mail = 1; $confirmation_text = <<'END_OF_CONFIRMATION'; From: info@fullfocusdesign.com Subject: form submission Thank you for your form submission. Here is the info you submitted: <b>stick field results here</b> END_OF_CONFIRMATION # You may need to uncomment the line below and adjust the path. # use lib './lib'; # USER CUSTOMISATION SECTION # -------------------------- # Place any custom code here # USER CUSTOMISATION << END >> # ---------------------------- # (no user serviceable parts beyond here) }

In reply to FormMail.pl Help by focus310

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.