TOPIC:

help with custom email template 1 year 1 month ago #236603

  • Topic Author
  • dama
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 46
  • Thanks: 1
Hello

It didn't help. It seems $NL is not working for me. I forgot to tell y0u that earlier that even second part of code
<?php echo $DATA[_FF_DATA_TITLE]?>: <?php echo $DATA[_FF_DATA_VALUE]?><?php echo $NL; ?>
<?php endif; ?>
<?php endforeach; ?>
wasn't producing anew line so I had to wrap it in <div> and now I have it working like this:
<div>Dear 
<?php foreach ($MAILDATA as $DATA): ?>
<?php if($DATA[_FF_DATA_NAME] == "name"): ?>
		<?php echo $DATA[_FF_DATA_VALUE] .",". $NL; ?></div>
<div>Thank you for contacting...</div>
<div style="margin:15px 0;">Here is the summary of your request:</div>
<?php else: ?>
<div style="line-height:2;"><?php echo $DATA[_FF_DATA_TITLE]?>: <strong><?php echo $DATA[_FF_DATA_VALUE]?></strong><?php echo $NL ?></div>
<?php endif; ?>
<?php endforeach; ?>

Do you still want me to send you the template file?

Regards

Please Log in or Create an account to join the conversation.

help with custom email template 1 year 1 month ago #236612

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello again,

Based on what you wrote I assume that you have named the file FORMNAME.html.php and therefore HTML template is expected.

The code I've provided is suitable for a non HTML file so the name should be FORMNAME.txt.php. Therefore, if you just change the file extension problem should be solved. In that case, the <div> won't be needed.

If you prefer to have a HTML file, you can leave it with the div-s as it is.

I hope this helps.

Best regards,

Mihaela

Please Log in or Create an account to join the conversation.

help with custom email template 1 year 1 month ago #236617

  • Topic Author
  • dama
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 46
  • Thanks: 1
Hello

Yes, I prefer HTML template because I added some additional code at the bottom.
Now it is working as I intended. Thank you for the help.

Kind regards

Please Log in or Create an account to join the conversation.

help with custom email template 1 year 1 month ago #236618

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Ok then,

I'm glad that this is now working as you wanted. :)

Best regards,

Mihaela

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.047 seconds

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!