sent email with correct subject
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 58s
All checks were successful
Build and Deploy Hugo Site / buildAndDeploy (push) Successful in 58s
This commit is contained in:
parent
7cb8887078
commit
d4ff61d42e
2 changed files with 21 additions and 4 deletions
|
|
@ -19,6 +19,10 @@ try
|
|||
$name = strip_tags(trim(filter_input(INPUT_POST, 'name') . ' ' . filter_input(INPUT_POST, 'vorname'))); // Add filter_input(INPUT_POST, 'nachname') to $name
|
||||
$lang = ( isset($_POST['sprache']) && $_POST['sprache'] == "FR" ? "FR" : "DE" );
|
||||
$email = filter_var(trim(filter_input(INPUT_POST, 'email')), FILTER_SANITIZE_EMAIL);
|
||||
|
||||
// set type: order or course
|
||||
$type = (isset($_POST['schulungstermin']) ? "course" : "order" );
|
||||
|
||||
// if order is from Organisation, use email on contact-person too
|
||||
if (isset($_POST['ansprechpartner_email']) && $_POST['ansprechpartner_email'] != "" )
|
||||
{
|
||||
|
|
@ -66,7 +70,13 @@ try
|
|||
// Send a second email to the customer
|
||||
$customerEmail = $email;
|
||||
|
||||
$customerSubject = ( $lang == "DE" ? 'Danke für Ihre Bestellung bei der VeruA AG' : 'Merci pour votre commande chez VeruA AG' );
|
||||
if ( $type == "course" )
|
||||
{
|
||||
$customerSubject = ( $lang == "DE" ? 'Danke für Ihre Anmeldung zur Schulung bei der VeruA AG' : 'Merci pour votre inscription chez VeruA AG' );
|
||||
} else
|
||||
{
|
||||
$customerSubject = ( $lang == "DE" ? 'Danke für Ihre Bestellung bei der VeruA AG' : 'Merci pour votre commande chez VeruA AG' );
|
||||
}
|
||||
|
||||
// $customerSubject = ( isset(filter_input(INPUT_POST, 'schulungstermin')) ? 'Danke für Ihre Anmelung zur Schulung'
|
||||
// : ($lang == "DE" ? 'Danke für Ihre Bestellung bei der VeruA AG' : 'Merci pour votre commande chez VeruA AG' ) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue