diff --git a/booking.helper.inc b/booking.helper.inc index 147776f..93ec1cd 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1383,9 +1383,16 @@ function _booking_details_email_summary($node) { $rows[] = t('Net Amount Due: !payment', array('!payment' => $node->booking_total_pay_reqd)); $rows[] = t('Payment Type: !payment', array('!payment' => $payment_description_query->booking_price_descrip)); - foreach ($rows as $key => $value) + foreach ($rows as $key => $value) { $rows[$key] = wordwrap($value); - return implode("\n", $rows); + } + + if(variable_get('booking_enable_html_mail', 0) == 1) { + return implode("\n
", $rows); + } + else { + return implode("\n", $rows); + } } /**