TOPIC:

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

  • moriwenne
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 23
  • Karma: 5
  • Thanks: 1
Is there such a thing as a Muffinman?

Of course there are stupid questions ^^

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

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

  • deenfoxx
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Karma: 1
  • Thanks: 1
Perhaps this example will help...
<?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];
	}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

<HTML><HEAD><TITLE>Example of form using field name references...</TITLE></HEAD>
<BODY TEXT="#000000">
<TABLE><TR><TD><B><U>PART 1 OF 8 -- CLAIMANT INFORMATION</U></B></TD></TR>
		<TR>
			<TD>Date Created:</TD>
			<TD><?php echo $value["date_today"]?></TD>
		</TR>
		<TR>
			<TD COLSPAN=2 HEIGHT=16 ALIGN=LEFT><U>I. Claimant Information</U></TD>
		</TR>
		<TR>
			<TD><?php echo $title["claimant_agency"]?></TD>
			<TD><?php echo $value["claimant_agency"]?></TD>
		</TR>
		<TR>
			<TD><?php echo $title["claimant_mailing_address"]?></TD>
			<TD><?php echo $value["claimant_mailing_address"]?></TD>
		</TR>
		<TR>
			<TD><?php echo $title["claimant_city_state_zip"]?></TD>
			<TD><?php echo $value["claimant_city_state_zip"]?></TD>
		</TR>
		<TR>
			<TD><?php echo $title["claimant_telephone"]?></TD>
			<TD><?php echo $value["claimant_telephone"]?></TD>
		</TR>
	</TBODY>
</TABLE>

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

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

  • Meisner
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
I've been struggling with customizing the email for a while, finally i tried to code above. My problem is that the code works fine with select lists. Regular text fields doesn't seem to work even though it's using the same code as the select fields.

The code is this:
<TD><?php echo $title["biowarelogin"]?></TD>
<TD><?php echo $value["biowarelogin"]?></TD>
</TR>
<TR>
<TD><?php echo $title["race"]?></TD>
<TD><?php echo $value["race"]?></TD>

The biowarelogin (textfield) doesn't work but the race (selectlist) does.

Any thoughts on where the problem may exist?

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

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

  • deenfoxx
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Karma: 1
  • Thanks: 1
Should work fine. Works for me. Just make sure you are referencing the fields by the "Name" you have given to the fields in the form. Here is my example...



Deen Foxx
www.sabaagency.com
Attachments:

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

Re:Custom email noHanstifications howto 11 years 8 months ago #12162

  • berlin80210
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Thanks: 0
Just in case anyone else stumbles across this post with the same problem of field layouts in the email being messed up.

When creating a custom reply email with HTML, move the </p> on line 45 to line 46.

It should look like this:
<?php foreach ($MAILDATA as $DATA): ?>
  <?php echo $DATA[_FF_DATA_TITLE]?>: 
<?php echo $DATA[_FF_DATA_VALUE]?><?php echo $NL ?></p>
<?php endforeach; ?>

Hope that helps!!!

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

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

  • jellytool
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
You star! This works brilliantly. I spent ages trying to work it out - you da man :D

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

Moderators: ForumSupport
Time to create page: 0.046 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!