expo form: email fixed

This commit is contained in:
Bachir Soussi Chiadmi 2021-09-08 15:11:59 +02:00
parent e6f0cbb190
commit ccf9e91313
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ function materio_expo_mail($key, &$message, $params) {
switch ($key) {
case 'expo_getmail_submitted':
$message['from'] = \Drupal::config('system.site')->get('mail');
$message['subject'] = t('[EXPO] mail submitted: @mail', array('@mail' => $params['mail']));
$message['subject'] = t('[EXPO] mail submitted: @mail', array('@mail' => $params['email']));
$message['body'][] = $params['message'];
break;
}

View File

@ -73,8 +73,8 @@ class GetEmail extends FormBase {
$module = 'materio_expo';
$key = 'expo_getmail_submitted';
$to = \Drupal::config('system.site')->get('mail');
$params['mail'] = $values['mail'];
$params['message'] = $values['mail'];
$params['email'] = $values['email'];
$params['message'] = $values['email'];
$langcode = \Drupal::languageManager()->getCurrentLanguage()->getId();
$send = true;