Menu

Change Email Design

Help
Pascal W
2009-03-25
2013-06-03
  • Pascal W

    Pascal W - 2009-03-25

    Hi everybody,

    I have a couple of questions and hope somebody can help me out. I installed formgenerator and it just works fine!

    However, I would like to change the design of the emails you receive after the submission. I have like 90 fields and hence it does not look really well arranged. I need something like you can do with the "thank you" page where you can add/change the html tags.

    Second I have lots of checkboxes in my form. If the checkbox is active, it shows me an "on" Is there a way to but a little picture instead?

    Thx a lot for any help!
    Pascal

     
    • Pascal W

      Pascal W - 2009-03-25

      alright I figured out my first question by myself! So there is only the second one left :)
      THX

       
    • Pascal W

      Pascal W - 2009-03-25

      me again! another problem occured!
      I can use the html tags but after every row he puts a <br> tag!
      A.e. when I have

      <table>
      <tr>

       
    • Pascal W

      Pascal W - 2009-03-25

      <td>TEXT</td>
      <td>TEXT</td>
      </tr>

      It appears like this in my email:

      <table><br>
      <tr><br>
      <td>TEXT</td><br>...and so on!

      How can I avoid that???

       
      • TNTEverett

        TNTEverett - 2009-03-25

        It is likely that the method you are using has a basic syntax error and the mail function adds an effective carriage return were it thinks is appropriate.  Seach the web for examples, there are lots of good ones that I have seen and used myself. 

         
    • TNTEverett

      TNTEverett - 2009-03-25

      Do a Google search for "php mail() html" and you will find many examples of creating an html email instead of plain text.  You have many options to how the email is formatted but all will require customizing the process.php file. 
      The form checkbox behavior is simple html and/or javascript.  Feel free to modify this anyway you like. 

       
    • Pascal W

      Pascal W - 2009-03-25

      Hi TNTEverett,

      Thx a lot for your help! The html mail works flawless now!

      However, I do not really understand what you mean concerning the checkboxes! Where and how exactly do I modify this?  

       
      • TNTEverett

        TNTEverett - 2009-03-26

        Here is some standard HTML code for a checkbox.

        <tr><td></td><td><input type=checkbox name='AddThis' value='yes'></td></tr>

        In your case it is some text instead of "AddThis" and the checked box value "yes" in your case is "on". 

        When you click "submit" the value you record in the processor.php is "on". 
        You can change this value to be anything you want. 

        Is this the answer you were looking for?

         
    • Pascal W

      Pascal W - 2009-03-25

      I got it! Thx again for your help! I really appreciate it!

       

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.