I want to display email body text into table formate after submitting the form.like below

Personal Info

First Name : Example1

Last Name : Example2


Year's Of Experience : 2 Years

I'm trying to change the webform-mail-[nid].tpl.php with my form component values but design formate not getting good please suggest me.

<?php print ($email['html'] ? '<p>' : '') . t('Submitted on [submission:date:long]'). ($email['html'] ? '</p>' : ''); ?>

<?php if ($user->uid): ?> <?php print ($email['html'] ? '<p>' : '') . t('Submitted by user: [submission:user]') . ($email['html'] ? '</p>' : ''); ?> <?php else: ?> <?php print ($email['html'] ? '<p>' : '') . t('Submitted by anonymous user: [submission:ip-address]') . ($email['html'] ? '</p>' : ''); ?> <?php endif; ?>

<?php print ($email['html'] ? '<p>' : '') . t('Submitted values are') . ':' . ($email['html'] ? '</p>' : ''); ?>

<?php print ($email['html'] ? '<p>' : '') . t('The results of this submission may be viewed at:') . ($email['html'] ? '</p>' : '') ?>

<?php print ($email['html'] ? '<p>' : ''); ?>[submission:url]<?php print ($email['html'] ? '</p>' : ''); ?>

put on hold as unclear what you're asking by kiamlaluno yesterday

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • check this link drupal.org/node/1337488 – Adi Sep 22 '15 at 7:21
  • Hi thanks for your replay.I have seen that url previously and i have workout second case "Using a webform email template" but no use.My form is big one contains upto 100 fields i want to divide those fields with better design view plz provide me is there any sample code for my requirement. – Parvateesam Sep 22 '15 at 8:20
  • Hi below solution works for me for above post,find below steps Step 1: Need to install Mime Mail,Mail System modules. Step 2: Go to Mime Mail module configuration page select E-mail formate should be HTML then save it. example.com/admin/config/system/mimemail Step 3:Go to Mail System configuration page then select example.com/admin/config/system/mailsystem "Site-wide default MailSystemInterface class" to MimeMailSystem "Mime Mail module class" to MimeMailSystem "HTML Mail module class" to MimeMailSystem Step 4:Then go your created webform to create E-mail's and wrote emai – Parvateesam Sep 30 '15 at 11:54

Browse other questions tagged or ask your own question.