Hi Eric,
Thank you for your help. I have another update:
I solved the problem how to send the confirmation mail in the chosen language by placing all phrases in the database, filtering the recordset by language_id and inserting the records in UE in the Dreamweaver edit mode.
I need two different confirmation mails though, one for orders sent from Germany (which are order confirmations), and one for orders sent from countries other than Germany confirming the receipt of the order which will later be followed by a proforma invoice (no tax and higher shipping). This I cannot filter.
Therefore I think I need two UE behaviors. I looked at your suggestion with the session variables, but I don't know where to put the code. I adjusted the if statement to match my database:
if($_SESSION['languageID'] == '1' && $_SESSION['OrderShipCountryID'] == 'Deutschland'){
$_SESSION['checkout_success'] = "checkout_success_germany.php";
}
To look into this, would it make sense to open a support ticket?