diff -u b/swiftmailer.module b/swiftmailer.module --- b/swiftmailer.module +++ b/swiftmailer.module @@ -43,7 +43,7 @@ //$message['params']['format'] = SWIFTMAILER_FORMAT_HTML; - $text[] = '

' . t('Dear !user,', array('!user' => $user->getAccountName())) . '

'; + $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' => variable_get('site_name', 'a Drupal site'))) . '

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

'; $text[] = t('The Swift Mailer module');