Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 815 Bytes

mailer.md

File metadata and controls

26 lines (21 loc) · 815 Bytes

Mailer

Yii2-user includes special component named Mailer, which is used to send emails in four different instances:

  • Welcome message contains user's credentials, when enableGeneratingPassword is true.
  • Registration confirmation message, when enableConfirmation is true.
  • Email change confirmation message
  • Recovery message

Configuration

Mailer can be configured as followed:

...
'user' => [
    'class' => 'dektrium\user\Module',
    'mailer' => [
        'sender'                => '[email protected]', // or ['[email protected]' => 'Sender name']
        'welcomeSubject'        => 'Welcome subject',
        'confirmationSubject'   => 'Confirmation subject',
        'reconfirmationSubject' => 'Email change subject',
        'recoverySubject'       => 'Recovery subject',
],
...