×

Advanced Search

Search by Keyword
×

Search Options

Find Posts from
Sort Results by
Search at a specific date
Jump to Result Number
Search in Categories

Search Results

Searched for: $this->sendMail
31 May 2022 15:52
  • tihana.krivic's Avatar
  • tihana.krivic
Hi,

like this:
$this->sendMail($from, $fromname, $recipient, $subject, $body, $isHtml, $headers); 
$this->execPieceByName('ff_InitLib');
$from = 'jrieger@dury.de'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'DURY LEGAL Rechtsanwälte '; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title), here user enters their mail
$subject = 'Ihre DE BASIS Markenanmeldung';
$select1=ff_getSubmit('Zahlung'); //change nameofradiogroup with name for your radio group(not title)
$markenname=ff_getSubmit('Markenname');
$name=ff_getSubmit('Name');
$ap= ff_getSubmit('Ansprechpartner');
$strasse=ff_getSubmit('Strasse');
$ort=ff_getSubmit('PLZORT');
$telefon=ff_getSubmit('Telefon');
$website=ff_getSubmit('website');
$markenportal = 'kanzlei@dury.de';
$subject = 'Neue DE BASIS Markenanmeldung auf markenportal.de';

$headers = "Content-Type: text/html; charset=UTF-8\r\n";
$isHTML=true;
$body1 = '<html><body>';
$body1.='<p><b>Vielen Dank für Ihre Anfrage!</b></p>';
$body1.='<p>Sie haben auf unserer Webseite Markenportal.net eine [DE]-Basis-Markenanmeldung mit folgendem Inhalt beauftragt:</p>';
$body1.='<p>Markenname:<b>'.$markenname.'</b></p>';
$body1.='</body></html>';

if($select1=="Vorkasse") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1, $isHtml, $headers);

Regards,
Tihana
31 May 2022 15:38
  • jr
Okay, my last question is how I can now insert my php variables such as $markenname into the text.
I tried it like this:
$this->execPieceByName('ff_InitLib');
$from = 'jrieger@dury.de'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'DURY LEGAL Rechtsanwälte '; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title), here user enters their mail
$subject = 'Ihre DE BASIS Markenanmeldung';
$select1=ff_getSubmit('Zahlung'); //change nameofradiogroup with name for your radio group(not title)
$markenname=ff_getSubmit('Markenname');
$name=ff_getSubmit('Name');
$ap= ff_getSubmit('Ansprechpartner');
$strasse=ff_getSubmit('Strasse');
$ort=ff_getSubmit('PLZORT');
$telefon=ff_getSubmit('Telefon');
$website=ff_getSubmit('website');
$markenportal = 'kanzlei@dury.de';
$subject = 'Neue DE BASIS Markenanmeldung auf markenportal.de';

$headers = "Content-Type: text/html; charset=UTF-8\r\n";
$isHTML=true;
$body1 = '<html><body>';
$body1.='<p><b>Vielen Dank für Ihre Anfrage!</b></p>';
$body1.='<p>Sie haben auf unserer Webseite Markenportal.net eine [DE]-Basis-Markenanmeldung mit folgendem Inhalt beauftragt:</p>';
$body1.='<p>Markenname:<b>$markenname</b></p>';
$body1.='</body></html>';

if($select1=="Vorkasse") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1, $isHtml, $headers);

best regrads
31 May 2022 14:17
  • Mirec's Avatar
  • Mirec
Hi,

try like this
$this->execPieceByName('ff_InitLib');
$from = 'jrieger@dury.de'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'DURY LEGAL Rechtsanwälte '; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title), here user enters their mail
$subject = 'Ihre DE BASIS Markenanmeldung';
$select1=ff_getSubmit('Zahlung'); //change nameofradiogroup with name for your radio group(not title)
$markenname=ff_getSubmit('Markenname');
$name=ff_getSubmit('Name');
$ap= ff_getSubmit('Ansprechpartner');
$strasse=ff_getSubmit('Strasse');
$ort=ff_getSubmit('PLZORT');
$telefon=ff_getSubmit('Telefon');
$website=ff_getSubmit('website');
$markenportal = 'kanzlei@dury.de';
$subject = 'Neue DE BASIS Markenanmeldung auf markenportal.de';

$headers = "Content-Type: text/html; charset=UTF-8\r\n";
$isHTML=true;
$body1 = '<html><body>';
$body1.='<p><b>Dear customer</b></p>';
$body1.='<p><b>thank you for choosing bla bla we will contact you....</b></p>';
$body1.='</body></html>';

if($select1=="Vorkasse") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1, $isHtml, $headers);
}


Let me know the result!


Regards,
Mirko
31 May 2022 14:16
  • jr
$this->execPieceByName('ff_InitLib');
$from = 'jrieger@dury.de'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'DURY LEGAL Rechtsanwälte '; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title), here user enters their mail
$subject = 'Ihre DE BASIS Markenanmeldung';
$select1=ff_getSubmit('Zahlung'); //change nameofradiogroup with name for your radio group(not title)
$markenname=ff_getSubmit('Markenname');
$name=ff_getSubmit('Name');
$ap= ff_getSubmit('Ansprechpartner');
$strasse=ff_getSubmit('Strasse');
$ort=ff_getSubmit('PLZORT');
$telefon=ff_getSubmit('Telefon');
$website=ff_getSubmit('website');
$markenportal = 'kanzlei@dury.de';
$subject = 'Neue DE BASIS Markenanmeldung auf markenportal.de';

$isHtml = true;
$body1 = '<html><body>';
$body1.='<p><b>Dear customer</b></p>';
$body1.='<p><b>thank you for choosing bla bla we will contact you....</b></p>';
$body1.='</body></html>';

if($select1=="Vorkasse") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1, $isHtml);
}


You can fill out the form and after sending it you will also receive the mail, but it will look like this:
<html><body><p><b>Dear customer</b></p><p><b>thank you for choosing bla bla we will contact you....</b></p></body></html>
31 May 2022 11:19
  • tihana.krivic's Avatar
  • tihana.krivic
Hi,

sorry, my fault, like this:
$isHtml = true;
$body1 = '<html><body>';
$body1.='<p><b>Dear customer</b></p>';
$body1.='<p><b>thank you for choosing bla bla we will contact you....</b></p>';
$body1.='</body></html>';
if($select1=="Vorkasse") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1, $isHtml);
}

Regards,
Tihana
31 May 2022 11:12
  • jr
$this->execPieceByName('ff_InitLib');
$from = 'jrieger@dury.de'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'DURY LEGAL Rechtsanwälte '; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title), here user enters their mail
$subject = 'Ihre DE BASIS Markenanmeldung';
$select1=ff_getSubmit('Zahlung'); //change nameofradiogroup with name for your radio group(not title)
$markenname=ff_getSubmit('Markenname');
$name=ff_getSubmit('Name');
$ap= ff_getSubmit('Ansprechpartner');
$strasse=ff_getSubmit('Strasse');
$ort=ff_getSubmit('PLZORT');
$telefon=ff_getSubmit('Telefon');
$website=ff_getSubmit('website');
$markenportal = 'kanzlei@dury.de';
$subject = 'Neue DE BASIS Markenanmeldung auf markenportal.de';

$isHtml = true;
$body1 = "
<html><body>
<font style='color:red;'>
$body1="Dear customer". "\r\n". "thank you for choosing bla bla we will contact you....";
</font>
</body></html>";
if($select1=="Vorkasse") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1, $isHtml);
}
31 May 2022 10:36
  • tihana.krivic's Avatar
  • tihana.krivic
Hi,

e.g. like this:
$isHtml = true;
$body1 =  "
<html><body>
<font style='color:red;'>
$body1="Dear customer". "\r\n". "thank you for choosing bla bla we will contact you....";
</font>
</body></html>";
if($select1=="value1") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1, $isHtml);
}
same for other bodys

Let me know if you get in stuck

Regards,
Tihana
19 May 2022 10:03
  • tihana.krivic's Avatar
  • tihana.krivic
Please disable Mail notification in your form->Properties->Mail notification if you use php mail.

The code for php mail should be in your form->Advanced->More options->Submit pieces->End submit.

Here is an example of code in End submit piece:
$this->execPieceByName('ff_InitLib');
$from = 'tihana.krivic@crosstec.org'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'Tihana Krivic'; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title), here user enters their mail
$subject = 'Your Subject Here';
$select1=ff_getSubmit('nameofradiogroup'); //change nameofradiogroup with name for your radio group(not title)



$body1="Dear customer". "\r\n". "thank you for choosing bla bla we will contact you....";
if($select1=="value1") {
$this->sendMail($from, $fromname,$recipient, $subject, $body1);
}

$body2="Dear customer". "\r\n". "we`re sorry that you don`t like bla bla...";
if($select1=="value2") {
$this->sendMail($from, $fromname,$recipient, $subject, $body2);
}
Please replace value1, value2 with value of your radio group

If you need more help, let me know

Regards,
Tihana
07 Feb 2022 13:38
  • tihana.krivic's Avatar
  • tihana.krivic
Hi,

please go to email element->Advanced->mailback and mailback as sender should be disable, and in form->Propertis->mail notification should be disabled.

Then go to your form->Advanced->More options->Submit pieces->End submit->check Custom and put:
$this->execPieceByName('ff_InitLib');
$from = 'tihana.krivic@crosstec.org'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'Tihana Krivic'; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title)
$subject = 'Your Subject Here'; //change this with subject you want to show

$body = '';
foreach ($this->maildata as $data) {
  $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n"; 
}
$this->sendMail($from, $fromname, $recipient, $subject, $body);

Let me know the result

Regards,
Tihana
17 Jan 2022 08:27
  • RonnyM's Avatar
  • RonnyM
Code:

$this->execPieceByName('ff_InitLib');
$from ='test@gmail.com';
$fromname ="test";
$subject = 'signature'; // Change to your preferred Email subject
$recipient = 'info@web-dokument.de'; // Change to your admin Email address

//grab values from fields that you want to pass in Admin email, replace Signatur and name with names of elements in your form
$signature= ff_getSubmit('Unterschrift');
$name= ff_getSubmit('name');

$attachment=null;
$isHtml = true;

$body = "
<html><body>
<h1>This is the title of email </h1>

<table>
<tr>
<td>
<strong>Name:</strong>
</td>
<td>
$name
</td>
</tr>

<tr>
<td>
<strong>signature:</strong>
</td>
<td>
<img src= ' web-dokument.de/media/breezingforms/signatures/'.$signature alt='signature' width='371' height='200'>
</td>
</tr>
</table>
</body></html>";

$this->sendMail($from, $fromname, $recipient, $subject, $body, $attachment, $isHtml);



Path to folder:

web-dokument.de/media/breezingforms/sign...88736ffb7ac125c7.png
11 Jan 2022 15:52
  • tihana.krivic's Avatar
  • tihana.krivic
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
11 Jan 2022 13:20
  • tihana.krivic's Avatar
  • tihana.krivic
Hi again,

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');

//$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 .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";
}

$this->sendMail($from, $fromname, $recipient, $subject, $body, $attachment);  

Let me know the result

P.S: please replace nameofemailelement with name for your email element (not title)

Regards,
Tihana
07 Jan 2022 11:37
  • tihana.krivic's Avatar
  • tihana.krivic
Hi,

please use this code :
$this->execPieceByName('ff_InitLib');
$from = 'noreply@website.co.uk';
$fromname = 'Website';
$subject = 'Your Email Subject';
$recipient = 'email1@example.co.uk, email2@example.co.uk'; //or ff_getSubmit('nameofemailfield');

$body = '';

foreach ($this->maildata as $data) {
$body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";
}
$this->sendMail($from, $fromname, $recipient, $subject, $body);

Let me know the result

Regards,
Tihana
Category: Usage
06 Jan 2022 12:51
  • ElectricFarmer
Hi,

I am trying to get the custom form results sent to more than one email address. Using the following I get the properly formatted email arriving at the first email address, and only an unformatted email to the second address. Have I got this submit piece wrong?

$this->execPieceByName('ff_InitLib');
$from = 'noreply@website.co.uk';
$fromname = 'Website';
$subject = 'Your Email Subject';
$recipient = 'email1@example.co.uk'; 'email2@example.co.uk'; //or ff_getSubmit('nameofemailfield');

$body = '';

foreach ($this->maildata as $data) {
$body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n";
}

$mode =false;
$attachment=null;

$this->sendMail($from, $fromname, $recipient, $subject, $body, $mode, $attachment, $cc, $bcc);
Category: Usage
08 Oct 2021 16:16
  • tihana.krivic's Avatar
  • tihana.krivic
Hi,

ok, then this finished element should have a value true then you can use this part:
if($finished == 'true')
This means when you defined element finished in Properties you can set value true for that.

Then in end submit pieces you can use this code:
$this->execPieceByName('ff_InitLib');
$from = 'tihana.krivic@crosstec.org'; // Change this to the EMAIL ADDRESS you want to appear in the Email's FROM field
$fromname = 'Tihana Krivic'; // Change this to the 'FROM' NAME you want to appear in the Email
$recipient = ff_getSubmit('email'); //change email with name of your email element (not title), this is for mailback
$subject = 'Your Subject Here';
$finished = ff_getSubmit('finished');


$body = '';
foreach ($this->maildata as $data) {
  $body .= $data[_FF_DATA_TITLE].": ".$data[_FF_DATA_VALUE].nl() . "\r\n"; 
}



if($finished==true) {
$this->sendMail($from, $fromname,$recipient, $subject,$body);
$this->sendMail($from, $fromname,'tihana.krivic@crosstec.org', $subject, $body);
}
Please replace my email with your admin email

Regards,
Tihana
Category: Form Help
  • Page:
  • 1
  • 2
Displaying 1 - 15 out of 24 results.
Time to create page: 0.346 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!