webhook

Good-bye"; swiftmailer_mail($key, $message; function swiftmailer_mail($key, &$message) { $user = \Drupal::currentUser(); $message['headers']['Content-Type'] = SWIFTMAILER_FORMAT_HTML; $text[] = '

' . t('Dear @user,', array('@user' => $user->getDisplayName())) . '

'; $text[] = '

' . t('This e-mail has been sent from @site by the Swift Mailer module. The module has been successfully configured.', array('@site' => \Drupal::config('system.site')->get('name'))) . '

'; $text[] = t('Kind regards') . '

'; $text[] = t('The Swift Mailer module'); $message['subject'] = t('Swift Mailer has been successfully configured!'); $message['body'] = array_map(function ($text) { return Markup::create($text); }, $text); } ?>