Menu

alter config to initiate emailing of file?

Help
Kim Kissel
2008-11-23
2013-06-03
  • Kim Kissel

    Kim Kissel - 2008-11-23

    With form2mail, you can set up your config file to have the script initiate a confirmation email to the person who fills out the form; can this be done w/ phpFormGenerator?  For example, here is the entire contents of "fileconfig", a form2mail config.  The visitor fills out the form, clicking submit and executing form2mail and this config, which branches out and directs 3 things to happen, 1) checks to make sure all field are completed and, if not, returns an error page (fileerror.tpl), logs the responses in a log file (filetemplate.tpl), 2) sends the submitter a confirmation email (filemail.tpl).  The directive to send the form information to me was made in the hidden form fields in the actual form.

    save_template=/folder/filetemplate.tpl
    save_option=append
    mail_template=/folder/filemail.tpl
    error_template=/folder/fileerror.tpl

    I would like to be able to set up my own email page w/ text and form tags to include their responses to the form in the confirmation email and have it send to them automatically when they submit their form.  Not sure how to do this in phpFormGen.

     
    • TNTEverett

      TNTEverett - 2008-11-23

      1) checks to make sure all field are completed and, if not, returns an error page (fileerror.tpl),

      phpFormgenerator does this if every field is required, it will check every entry before it can be submitted, you can have it checked before submission or checked after submitted by returning an error page (the later requires some simple customization). 

      logs the responses in a log file (filetemplate.tpl),

      phpFormgenerator can save results in text or SQL.

      2) sends the submitter a confirmation email (filemail.tpl). The directive to send the form information to me was made in the hidden form fields in the actual form.

      phpFormgenerator can send the results (confirmation) to the user and or the form owner with very simple customization. 

      The best part of phpFormgenerator is that it is open source and with very little effort it can be customized to do anything you want. 

       
    • Kim Kissel

      Kim Kissel - 2008-11-25

      "phpFormgenerator can send the results (confirmation) to the user and or the form owner with very simple customization."

      Okay... how do I customize it so that it sends a confirmation to the user?  Ideally, I would like to create a "thank you" email that includes the user's respones in the body... or simply modify the email that is sent to me to look like this and then have a copy also sent to the user.

      Appreciate the help...

       
    • Kim Kissel

      Kim Kissel - 2008-11-25

      Nevermind... figured it out on my own.  I just studied the process.php until I figured it out.  Put the entire body of the email I wanted into the $message area to create an actual email letter with my fields included, then I created a second "mail" directive line with "$EmailAddress" as the recipient of the email and poof... it worked!  If you want to check it... curiosity maybe... the form is at http://chicagolandwedding.com/AdKit/OrderForm.htm

      Thanks anyway!

       
    • Jay

      Jay - 2009-01-18

      Hey kissels, I liked your Form. I was wondering how you managed to have it embedded in your website page. My Forms usually take you to a different page. Thanks

       
    • luke w

      luke w - 2009-01-19

      Ya it's a nice form.  How did you alter the look of it so much?  Different .css file?

      Phyrex you can embed it into another page by simply copy/paste the html code of form.html into the code of your existing page (but make sure that you didn't have a separate dir for your form or it will not work, the process.php and other files should be in the root dir).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.