Thanks mihaela,
can I modify the script you have indicated to me but how do I link it in More options> Submit pieces> End Submit> custom the first part to the second one? I explain in the first part the script has the value of "totalFinal" and generates a "result" that according to the case redirects the user in the page, how do I connect the second part with the sending?
to manage the various emails I can change this way:
//First email content
$body1 = 'This is the first email';
//First email content
$body2 = 'This is the second email';
//First email content
$body3 = 'This is the third email';
//First email content
$body4 = 'This is the 4 email';
if($result == "A") {
$this->sendMail($from, $fromname, $recipient, $subject, $body1 ); }
if($result == "B") {
$this->sendMail($from, $fromname, $recipient, $subject, $body2 ); }
if($result == "C") {
$this->sendMail($from, $fromname, $recipient, $subject, $body3 ); }
if($result == "D") {
$this->sendMail($from, $fromname, $recipient, $subject, $body4 ); }
can you help me understand how to connect the 2 scripts?
thanks