expo form: email fixed
This commit is contained in:
parent
e6f0cbb190
commit
ccf9e91313
|
@ -30,7 +30,7 @@ function materio_expo_mail($key, &$message, $params) {
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'expo_getmail_submitted':
|
case 'expo_getmail_submitted':
|
||||||
$message['from'] = \Drupal::config('system.site')->get('mail');
|
$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'];
|
$message['body'][] = $params['message'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,8 +73,8 @@ class GetEmail extends FormBase {
|
||||||
$module = 'materio_expo';
|
$module = 'materio_expo';
|
||||||
$key = 'expo_getmail_submitted';
|
$key = 'expo_getmail_submitted';
|
||||||
$to = \Drupal::config('system.site')->get('mail');
|
$to = \Drupal::config('system.site')->get('mail');
|
||||||
$params['mail'] = $values['mail'];
|
$params['email'] = $values['email'];
|
||||||
$params['message'] = $values['mail'];
|
$params['message'] = $values['email'];
|
||||||
$langcode = \Drupal::languageManager()->getCurrentLanguage()->getId();
|
$langcode = \Drupal::languageManager()->getCurrentLanguage()->getId();
|
||||||
$send = true;
|
$send = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue