goalio / GoalioForgotPassword

A Zend Framework 2 (ZF2) Module offering forgot password via e-mail functionality to ZfcUser
BSD 3-Clause "New" or "Revised" License
42 stars 49 forks source link

SMTP configuration #27

Closed shinesoftware closed 10 years ago

shinesoftware commented 10 years ago

Hi,

thanks for your piece of code! How have I to set the SMTP configuration in your module?

thanks

shinesoftware commented 10 years ago

Solved

$settings = array(
'transport_class' => 'Zend\Mail\Transport\Smtp',

'options_class' => 'Zend\Mail\Transport\SmtpOptions',

'options' => array(
    'host' => 'smtp.gmail.com',
    'connection_class' => 'login',
    'connection_config' => array(
        'ssl' => 'tls',
        'username' => 'YOUR-USERNAME-HERE@gmail.com',
        'password' => 'YOUR-PASSWORD-HERE'
    ),
    'port' => 587
)
);