The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Text Template Results in All Entries on One Long Line - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Text Template Results in All Entries on One Long Line (/showthread.php?tid=2271)



Text Template Results in All Entries on One Long Line - waizen - Nov 5th, 2012

Hi.

I have a Form Tools v.2.0.0 running and for the most part works great. However, the email that is sent out from the system to the site owner that informs him of a message comes in with all field entries in one long line.

In other words, within the received message, it looks something like:

Form Source: site First Name: John Last Name: Doe Address: 123 Main St...

...etc...

I would like each entry to appear on its own line. In the email's Text Template in the backend, I have the following template:

Code:
You have a form submission:  {$FORMNAME}:

ID: {$SUBMISSIONID}
{if $ANSWER_source}Form Source: {$ANSWER_source}
{/if}
{if $ANSWER_First_Name}First Name: {$ANSWER_First_Name}
{/if}
{if $ANSWER_Last_Name}Last Name: {$ANSWER_Last_Name}
{/if}
{if $ANSWER_How_Like_To_Receive_Information}How Like To Receive Information: {$ANSWER_How_Like_To_Receive_Information}
{/if}
{if $ANSWER_Company_Name}Company Name: {$ANSWER_Company_Name}
{/if}
{if $ANSWER_Street_Address}Street Address: {$ANSWER_Street_Address}
{/if}
{if $ANSWER_City_Town}City Town: {$ANSWER_City_Town}
{/if}
{if $ANSWER_State}State: {$ANSWER_State}
{/if}
{if $ANSWER_Zipcode}Zipcode: {$ANSWER_Zipcode}
{/if}
{if $ANSWER_Country}Country: {$ANSWER_Country}
{/if}
{if $ANSWER_Telephone}Telephone: {$ANSWER_Telephone}
{/if}
{if $ANSWER_electronic_mail}Electronic Mail: {$ANSWER_electronic_mail}
{/if}
{if $ANSWER_First_Heard_of_XXX_Through}First Heard Of XXX Through: {$ANSWER_First_Heard_of_XXX_Through}
{/if}
{if $ANSWER_Using_Machine_for}Using Machine for: {$ANSWER_Using_Machine_for}
{/if}
{if $ANSWER_Log_Splitters}Interested in: {$ANSWER_Log_Splitters}
{/if}
{if $ANSWER_Wood_Processors}Interested in: {$ANSWER_Wood_Processors}
{/if}
{if $ANSWER_Conveyors}Interested in: {$ANSWER_Conveyors}
{/if}
{if $ANSWER_Cords_Split_Per_Year}Cords Split Per Year: {$ANSWER_Cords_Split_Per_Year}
{/if}
{if $ANSWER_Comments}Comments: {$ANSWER_Comments}
{/if}
IP Address: {$IPADDRESS}
Submission made: {$SUBMISSIONDATE}

I tried adding break tags after each entry (right after each closing if tag) and it does make each entry appear on its own line as I desire, but the break tags also appear written within the incoming message.

Any way I can create these line breaks between each entry without the break tags showing up? Thank you in advance.