Willkommen, Gast
Angemeldet bleiben:

THEMA:

Custom email notifications howto 12 Jahre 2 Monate her #1576

  • Autor
  • Besucher
  • Besucher
Today I added custom email notifications due to lots of request for that feature.

To edit the custom emails you should know the following:

- you can change the email layout globally for text or html mails

- ...or you add custom email layouts for each of your forms


To change the global text email layout go to "JoomlaRoot/media/breezingformsmailtpl/", open the file mailtpl.txt.php and edit it.

The 'txt' in the filename determines that it is a layout for a text email.

If you want a use html emails, copy that file and name it "mailtpl.html.php". The 'html' determines that this is the layout for html mails.

If a html layout is defined, it will be prefered by BreezingForms to use - you can't select it in backend admin! If you dont want to use the html layout anymore, just delete that file!

If you delete all layout files, the built in fallback layout will be used.

To create custom layouts for each of your forms the procedure is exactly the same, except that the files have to be named like "FORMNAME.[txt|html].php". E.g. "SampleContactForm.txt.php" for text mails or "SampleContactForm.html.php" for html mails.


I hope you got the point, if you need further explanations ask the forums please.

Regards,
Markus

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Letzte Änderung: Post by chrisal.

Re:Custom email notifications howto 12 Jahre 1 Monat her #1777

  • moriwenne
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Beiträge: 23
  • Karma: 5
  • Dank erhalten: 1
I try leaving as text as the whole content of the php file shows up on my email. I changed it to html and it shows :::::: on my email, basically what is the middle of all those ?=$process. How do you get the data itself?
Folgende Benutzer bedankten sich: wartime

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Re:Custom email notifications howto 12 Jahre 4 Wochen her #2024

  • Haris
  • Besucher
  • Besucher
Thanks for the tips. just work! it is what i need, to remove unnecessary data saved on mail.

Danke schön;)

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Re:Custom email noHanstifications howto 12 Jahre 1 Woche her #2198

  • Hans
  • Besucher
  • Besucher
Thanks for the addon

However, when I select HTML version, the mail puts the form fields + values next to each other

In the text version its neatly field by field on its own line


For explample, with HTML:
Name: Hans Email: Hans@mail.com Message: bla bla

with TEXT:
Name:
Hans
Email: Hans@mail.com
Message: bla bla


Any suggestions how to change the layout...?

Regards,
Hans.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Re:Custom email noHanstifications howto 12 Jahre 1 Woche her #2199

  • Moriwenne
  • Besucher
  • Besucher
Hi Hans.

Try to confirm that the html file is the one being used by going to
administrator\components\com_facileforms\mailtpl\mailtpl.html.php and changing some text say on this piece

<?php foreach ($MAILDATA as $DATA): ?>
<?=$DATA[_FF_DATA_TITLE]?>: <?=$DATA[_FF_DATA_VALUE]?><?=$NL ?>
<?php endforeach; ?>

change : to * for instance and check if you email now has Name* Hans instead of Name: Hans.

The <?=$NL ?> is the same that is used with the txt file and is responsible for the new lines on your email so if it's working for one it should work for the other.
Could something be overriding it?

Also test with a different email and client if you can.

By the way, just trying to help, I have no affiliation with crosstec and since I've had a thread open for the past week with no responses I figured you would wait a while too for any kind of response.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Re:Custom email noHanstifications howto 12 Jahre 1 Woche her #2200

  • Hans
  • Besucher
  • Besucher
Moriwenne,

First, thanks already for your reply.
filepath: /var/www/html/start/administrator/components/com_facileforms/mailtpl/

filename: RM_ContactForm.html.php

same name as the form and the mail is using it

the source of the RM_ContactForm.html.php
<?php
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
?>

<p><b>Contact</b><br />
Verzonden op: <?=$SUBMITTED ?><?=$NL ?><br />
<br />
</p>
<p><?php foreach ($MAILDATA as $DATA): ?>
<?=$DATA[_FF_DATA_TITLE]?>: <?=$DATA[_FF_DATA_VALUE]?><?=$NL ?>
<?php endforeach; ?>
</p>

<p>
<b>Extra informatie:</b>
<br />
<?=$PROCESS_FORMTITLE ?>: <?=$TITLE ?><?=$NL ?><br />
<?=$PROCESS_SUBMITTEDAT ?>: <?=$SUBMITTED ?><?=$NL ?><br />
<?=$PROCESS_SUBMITTERIP ?>: <?=$IP ?><?=$NL ?><br />
<?=$PROCESS_PROVIDER ?>: <?=$PROVIDER ?><?=$NL ?><br />
<?=$PROCESS_BROWSER ?>: <?=$BROWSER ?><?=$NL ?><br />
<?=$PROCESS_OPSYS ?>: <?=$OPSYS ?><?=$NL ?>
</p>

<p>
<?php if ($RECORD_ID != ''): ?>
<?=$PROCESS_RECORDSAVEDID?> <?=$RECORD_ID ?><?=$NL ?>
<?php endif; ?>
</p>

I have only changed the lines around, haven't really touched the code itself.

Any idea's for the following, instead of using
<?php foreach ($MAILDATA as $DATA): ?>
<?=$DATA[_FF_DATA_TITLE]?>: <?=$DATA[_FF_DATA_VALUE]?><?=$NL ?>
<?php endforeach; ?>

can i use something to parse every part of the form field instaed of everything at once as above

so i mean
<?php foreach ($MAILDATA as $DATA): ?>
<?=$DATA[_FF_DATA_Name]?>: <?=$DATA[_FF_DATA_Name value]?><?=$NL ?>
<?=$DATA[_FF_DATA_email]?>: <?=$DATA[_FF_DATA_email value]?><?=$NL ?>
<?php endforeach; ?>

Any idea's?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Moderatoren: ForumSupport
Ladezeit der Seite: 0.061 Sekunden

Angebot

Sommer Special! Alle Mitgliedschaften zum Sonderpreis!

Prio Support, alle Extensions und alle Templates in einem Paket.

Hier geht's zur Bestellung

Crosstec hilft sparen!

Falls Sie neu bei Crosstec sind aber bereits einen Formulargenerator bei einem anderen Hersteller gekauft haben, dann bekommen sie von uns einen Rabatt von 25% auf unsere 1-Jahres und Pro-Mitgliedschaften

Wie Sie an den Rabatt kommen?

Schreiben Sie uns einfach eine kurze Email mit beigelegten Kaufbeleg (z.B. PayPal Quittung) an sales@crosstec.org.

Wir unterstützen die Joomla Community

Crosstec unterstützt weltweit alle offiziellen Joomla! User Groups und Organisatoren von Joomla! Days die bei Joomla.org registriert sind.

Falls das auf dich zutrifft und du eines unserer Produkte brauchst, schreib uns eine kurze Email an info@crosstec.org und du bekommst eine Flatrate-Mitgliedschaft geschenkt!