Title: Problem e-mail tabled
Last modified: September 16, 2022

---

# Problem e-mail tabled

 *  Resolved [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/)
 * I have a form – which works perfectly – but mail from the form looks completely
   wrong.
    Have set ‘insert_table_in_mail’ in functions.php
 * My result looks like this:
 * e-mail:
    Fra: My name Emne: Bestilling af billeder Bestilling fra the hjemmeside:
   row(1):12345-5 row(2):12345-5 row(1):2 row(2):1 row(1):45×59 row(2):18×24 My 
   name Adress and number 70500 Mycity [mail@mysite.dk](https://wordpress.org/support/topic/problem-e-mail-tabled/mail@mysite.dk?output_format=md)
 * e-mail html:
    <!doctype html> <html xmlns=”[http://www.w3.org/1999/xhtml&#8221](http://www.w3.org/1999/xhtml&#8221);
   dir=”ltr” lang=”da-DK”> <head> <title>Company – bestilling</title> </head> <body
   > <p>Fra: My name <[your-email]><br /> Emne: Bestilling af billeder</p> <p>Bestilling
   fra the hjemmeside:</p> <div><label>row(1):</label><span>12345-5</span></div>
   <div><label>row(2):</label><span>12345-5</span></div> <div><label>row(1):</label
   ><span>2</span></div> <div><label>row(2):</label><span>1</span></div> <div><label
   >row(1):</label><span>45×59</span></div> <div><label>row(2):</label><span>18×
   24</span></div> <p>Mu name<br /> Adress and number<br /> 70500 Mycity<br /> [mail@mysite.dk](https://wordpress.org/support/topic/problem-e-mail-tabled/mail@mysite.dk?output_format=md)
   </p> </body> </html>`

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16016836)
 * In order to format a table output into your mail you need to use a hook with 
   a custom code. There is a [video tutorial](https://www.youtube.com/watch?v=mcC36e69-eM&list=PLblJwjs_dFBsynXEstrV3fCIC7GBmK9HW&index=6&t=1304s)
   that briefly outlines this.
 *  Thread Starter [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16018831)
 * Thanks!
    Is there a place to copy the hook?
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019261)
 * sure, it’s explained in the video tutorial
 *  Thread Starter [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019295)
 * OK – taking about your help site – but where is that?
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019318)
 * > OK – taking about your help site – but where is that?
 * not sure what you mean. There is no separate site, everything in the video tutorial
   is based on the plugin interface in the dashboard admin page
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019328)
 * just click on the [interactive icons](https://youtu.be/mcC36e69-eM?list=PLblJwjs_dFBsynXEstrV3fCIC7GBmK9HW&t=1326)
   to copy the helper codes.
 *  Thread Starter [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019347)
 * Yes there are 6, but not the one in the video:
    cf7sg_mailtag_cf7sg-form-house-
   rental-with-tables can you help me with that?
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019361)
 * indeed because the tag name changes with your form name.
 * look for something like:
 * `cf7sg_mailtag_cf7sg-form-<your form name>`
 *  Thread Starter [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019410)
 * The 6 hooks are:
    cf7sg_validate_submission cf7sg_annotate_mail_attach_grid_files
   cf7sg_mailtag_grid_fields cf7sg_valid_form_submission cf7sg_submission_success_message
   cf7sg_redirect_on_success
 * but no ‘cf7sg_mailtag_cf7sg-form-<your form name>’
 * where can I find that?
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019606)
 * > The 6 hooks are:
 * You need to look at your mail tags (those that are indicated in the mail tab
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019620)
 * See this screenshot, navigate to the mail tag, add teh tag to the mail body and
   click on the info icon to copy the helper code
    [⌊mail-tag⌉](https://ibb.co/THQ2wcf)
 *  Thread Starter [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019640)
 * There is the problem – I don’t have acces for that
 * http//prolight@pro07.azehosting.net/keldfoto.dk/2022-09-17_18-46-04.jpg
 *  Thread Starter [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019643)
 * sorry screenshot dosn’t work
 *  Thread Starter [keldn](https://wordpress.org/support/users/keldn/)
 * (@keldn)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019658)
 * [http://keldfoto.dk/wp-content/uploads/2022/09/2022-09-17_18-46-04.jpg](http://keldfoto.dk/wp-content/uploads/2022/09/2022-09-17_18-46-04.jpg)
 * but here it is;-)
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019686)
 * but it is there! the last tag in your screenshot!

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Problem e-mail tabled’ is closed to new replies.

 * ![](https://ps.w.org/cf7-grid-layout/assets/icon-256x256.png?rev=1834229)
 * [Smart Grid-Layout Design for Contact Form 7](https://wordpress.org/plugins/cf7-grid-layout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-grid-layout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-grid-layout/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-grid-layout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-grid-layout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-grid-layout/reviews/)

 * 15 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/problem-e-mail-tabled/#post-16019686)
 * Status: resolved