TOPIC:

Re:Custom email notifications howto 11 years 8 months ago #13009

  • terrywmu's Avatar
  • terrywmu
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 509
  • Karma: 8
  • Thanks: 9
Note for all: The very first post in this thread talks about the naming convention that you need to use, but in recent posts, it is not being shown correctly.

The proper naming convention for admin email templates is:

FORMNAME.html.php
or
FORMNAME.txt.php

The proper naming convention for MAILBACK email templates is:

FORMNAME_mailback.html.php
or
FORMNAME_mailback.txt.php


Hope this helps!

Terry
The following user(s) said Thank You: wartime, uglyeoin

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

Here's a Sample HTML Email Template I created 11 years 8 months ago #13133

  • erichhaubrich's Avatar
  • erichhaubrich
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Web Ninja and Technology Geek
  • Posts: 53
  • Karma: 4
  • Thanks: 3
This is an HTML email template you can use to create a nice clean look for the emails that are sent from your forms. Please feel free to edit it and use it in any way you want.

This template puts the form title in the header, the field label in the left column and the data entered into the right column. It also has a privacy disclaimer and the technical data from the form submission (IP Address, browser, etc.) at the bottom.

:) Breezing forms makes it super easy to use custom email templates.

1) Download the attached file and open it in an HTML editor

2) Replace 'sample-logo.png' with your logo (you must use the full URL to your logo)

3) Post the file to your server in the /administrator/components/com_facileforms/mailtpl/ directory.

This will now be the default email format for all of your forms.

You can also different templates for different forms. Here is the naming convention (Courtesy of Terry)

Admin Email Template:

FORMNAME.html.php
or
FORMNAME.txt.php

Mailback Email Template

FORMNAME_mailback.html.php
or
FORMNAME_mailback.txt.php

I hope this helps those of you who are looking for a nice way to format emails. If you come up with some creative ideas, please post some examples here in the forums.

File Attachment:

File Name: mailtpl.zip
File Size:2 KB
I love Breezing Forms! - It is the Killer App for Forms on Joomla!
Attachments:
The following user(s) said Thank You: wartime, Dominaz

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

Last edit: Post by erichhaubrich. Reason: Error on upload

Re:Here's a Sample HTML Email Template I created 11 years 7 months ago #13187

  • jcole
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 1
erichhaubrich,

Thank you so much for the template! I was able to change the logo and color to our school's colors, and it looks great.

I have one question, is there a way I can add the section names to the table? We have an online application that is broken into sections -- "Personal Information", "Work History", "References", and so on. I need those to show in the email. If this can be done then how?

Thank you so much again!
The following user(s) said Thank You: wartime

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

Re:Custom email notifications howto 11 years 7 months ago #13292

  • boab2791
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 1
I've just started using Breezing Form 1.6.5 (free version) to see what the program can do.

I'm impressed with it so far although found the email notifications somewhat of a let down compared to the way the forms we design look.

I have been following this thread with interest, I'm no html/php programmer though!

Using the early examples I managed to get a working html data table then thanks to Breezing Forms for posting an updated mailtpl file, looks very good!

One thinh spoils the form though, when the user does not fill in a specific field that is shall we say optional I get the fielsd title all nice looking but becuase there is no data value that field looks like it is faulty.

Now ehen I did the basic table layout this morning a field with no value just resulted in no border around that field, is it possible to compensate for this.

Also in your revised template there where the date is located by form title is spread over two lines for some reason, any ideas.

Money is tight just now and I was wondering is there anything in 1.7.1 that makes the jump worthwile.

Oh one other thing which I knwo is not related to this topic but who can you extract the data into say a spreadsheer as I need to create invoices with this date. I exported using csv and all data is piled into one cell for some reason and xml I wouldn't know where to begin.

Great extension, glad I found it.

I have attached an image of the template with missing fields.
Attachments:
The following user(s) said Thank You: wartime

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

Last edit: Post by boab2791. Reason: removed info from picture

Re:Custom email notifications howto 11 years 7 months ago #13442

  • bscivolette
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 91
  • Thanks: 1
Hi Eric,

Nice template and thank you for providing. I am no designer so I wanted to check before I made any changes.

On the template provided it calls for all titles and values to be listed. I only need certain ones. So my question is, what code should I wrap around each variable I am calling? I can only assume this code is what needs to be updated:
<?php foreach ($MAILDATA as $DATA): ?>
<tr>
<td width="25%" align="left" valign="top" bgcolor="#eef0f3" style="background-color:#eef0f3; Font-family:Arial, Helvetica, sans-serif; font-size:11px; font-weight:bold; margin-left:10px; border-top:thin; border-top-color:#999; border-top-style:solid; border-left:thin; border-left-color:#999; border-left-style:solid;"><?php echo $DATA[_FF_DATA_TITLE]?> </td>
<td colspan="2" align="left" valign="top" bgcolor="#eef0f3" style="height:22px; height:22px; background-color:#eef0f3; font-family:Arial, Helvetica, sans-serif; font-size:11px; margin-left:10px; border-top:thin; border-top-color:#999; border-top-style:solid; border-left:thin; border-left-color:#999; border-left-style:solid; border-right:thin; border-right-color:#999; border-right-style:solid;"><?php echo $DATA[_FF_DATA_VALUE]?> </td>
</tr>
<!-- Spacer Row -->
<tr>
<td colspan="3" align="left" valign="top" style="height:5px; border-top:thin; border-top-color:#999; border-top-style:solid"></td>
</tr>
<?php endforeach; ?>

Using good old common sense I would think that simply copying and pasting both paragraphs for each variable and then replacing the
<?php echo $DATA[_FF_DATA_TITLE]?>
and
<?php echo $DATA[_FF_DATA_VALUE]?>
with my variable would do the trick.

Question is, am I right?
The following user(s) said Thank You: wartime

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

Re: Custom email notifications howto 11 years 4 months ago #15245

  • sannisinas
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 6
Hi all,

I have been trying to change my email back template with only a few fields and not the whole list. I have read this topic but it's not working for me. To give a simple example I am using below but the field adres is not being filled out with the streetname, I am using quickmode for my form. Can somebody help me please?


<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
$field = array();
foreach ($MAILDATA as $DATA) {
$title[$DATA[_FF_DATA_NAME]] = $DATA[_FF_DATA_TITLE];
$value[$DATA[_FF_DATA_NAME]] = $DATA[_FF_DATA_VALUE];
}
?>

<TABLE><TR><TD><B><U>Adres</U></B></TD></TR>
<TR>
<TD>Adres:</TD>
<TD><?php echo $value["straat"]?></TD>
</TR>

</TABLE>
The following user(s) said Thank You: wartime

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

Moderators: ForumSupport
Time to create page: 0.060 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

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!