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