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) {
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue