TOPIC:

Multiple Attachment send by form 4 months 2 weeks ago #267737

  • michiel@TSS
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 225
  • Thanks: 0
Hi,

This is super, works like charme.. :)
Thanks.. :)

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

Multiple Attachment send by form 4 months 2 weeks ago #267738

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10179
  • Karma: 3
  • Thanks: 683
Hi,

np, anytime :)

Regards,
Tihana

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

Multiple Attachment send by form 4 months 2 weeks ago #267740

  • michiel@TSS
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 225
  • Thanks: 0
Hi,

Just one little question left..
How can i trigger the value of the field contactpersoon above the email field into the body??

:)

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

Multiple Attachment send by form 4 months 2 weeks ago #267741

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10179
  • Karma: 3
  • Thanks: 683
Hi,

using this part of code:
 $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";
each value which is submitted will be shown here :)

UDPATE: also you can add it like this:
$person=ff_getSubmit('nameofelementforcontactperson');
then body should be like:
 $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";
$body.="Contact person:" . $person ."\r\n";


Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Multiple Attachment send by form 4 months 2 weeks ago #267742

  • michiel@TSS
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 225
  • Thanks: 0
oke :)
But i got this body for the email.. and i only need the contactpersoon:


Beste {Contactpersoon:value},

In navolging van ons eerdere contact sturen wij u hierbij onze brochure met meer informatie over het Online Bestellen en het inschrijfformulier.
Wij zien uw gratis inschrijving graag tegemoet!

Mocht u vragen hebben of hulp nodig zijn bij het inschrijven, neem dan gerust contact met ons op.


Met vriendelijke groet, Kind regards, Cordialement, أطيب التحيات Team HalalTime

NL: +31 85 060 4747
BE: +32 143 944 10

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

Multiple Attachment send by form 4 months 2 weeks ago #267743

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10179
  • Karma: 3
  • Thanks: 683
Hi,

like this:
$this->execPieceByName('ff_InitLib');
$from = 'info@halaltime.eu'; //change to wanted email
$fromname = 'Halaltime'; //change to wanted from name
$subject = 'Restaurant informatie HalalTime'; // Change to your preferred Email subject
$attachment = [];
$recipient=ff_getSubmit('nameofemailelment');
$person=ff_getSubmit('nameofcontactpersonelement');

//$ischeck[]= ff_getSubmit('check');
$body = '';
 
foreach ($this->maildata as $data) {
 
  if( $data[_FF_DATA_NAME] == 'Bijlage'){
   $ischeck =  $data[_FF_DATA_VALUE];
    if (strpos($ischeck, 'value1') !== false) {
        array_push($attachment , JPATH_SITE.'/images/systeem/HT_Inschrijfformulier.pdf'); }
    if (strpos($ischeck, 'value2') !== false) {
        array_push($attachment , JPATH_SITE.'/images/systeem/Informatiebrochure_HalalTime.pdf');  }
    } 
   $body .= "Dear". $person. "\r\n";
   $body .= "In navolging van ons eerdere contact sturen wij u hierbij onze brochure met meer informatie over het Online Bestellen en het inschrijfformulier." . "\r\n";
   $body .= "Wij zien uw gratis inschrijving graag tegemoet!";
   $body .= "Mocht u vragen hebben of hulp nodig zijn bij het inschrijven, neem dan gerust contact met ons op." ."\r\n";
   $body .= "Met vriendelijke groet, Kind regards, Cordialement, أطيب التحيات Team HalalTime" . "\r\n";
   $body .= "NL: +31 85 060 4747" . "\r\n";
   $body .= "BE: +32 143 944 10" . "\r\n";
}

$this->sendMail($from, $fromname, $recipient, $subject, $body, $attachment);  
replace nameofcontactpersonelement, and nameofemailelement with name of your elements for contact persion and email (not title)

Regards,
Tihana

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

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