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