TOPIC:

Different backmails or different text in backmails depending on selection 2 months 1 week ago #274537

  • Topic Author
  • jr
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
$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);
}

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

Different backmails or different text in backmails depending on selection 2 months 1 week ago #274543

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10737
  • Karma: 3
  • Thanks: 718
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

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

Different backmails or different text in backmails depending on selection 2 months 1 week ago #274566

  • Topic Author
  • jr
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
Hi,

I am very grateful for your help. Unfortunately, the mail then looks like this when the recipient receives it:

<html><body><p><b>Dear customer</b></p><p><b>thank you for choosing bla bla we will contact you....</b></p></body></html>

Do you have any idea what the problem could be?

Regards

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

Different backmails or different text in backmails depending on selection 2 months 1 week ago #274573

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2942
  • Karma: 2
  • Thanks: 150
Hi,

could you please again provide here the full code which isn't working?




regards,
Mirko

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

Different backmails or different text in backmails depending on selection 2 months 1 week ago #274576

  • Topic Author
  • jr
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 21
  • Thanks: 0
$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>

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

Different backmails or different text in backmails depending on selection 2 months 1 week ago #274577

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2942
  • Karma: 2
  • Thanks: 150
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

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

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