Skip to content

Instantly share code, notes, and snippets.

@juizmill
Created February 18, 2013 00:55
Show Gist options
  • Save juizmill/4974465 to your computer and use it in GitHub Desktop.
Save juizmill/4974465 to your computer and use it in GitHub Desktop.
arquivo GLOBAL do ZF2 com a configuração para disparar e-mail
<?php
/**
* Global Configuration Override
*
* You can use this file for overriding configuration values from modules, etc.
* You would place values in here that are agnostic to the environment and not
* sensitive to security.
*
* @NOTE: In practice, this file will typically be INCLUDED in your source
* control, so do not include passwords or other sensitive information in this
* file.
*/
return array(
'mail' => array(
'name' => 'smtp.gmail.com', #SMTP do servidor de e-mail
'host' => 'smtp.gmail.com', #No google só repetir o SMTP
'port' => 465, #Porta do servidor de e-mail
'connection_class' => 'login', #Diz que será feito uma autenticação para disparar os e-mail
'connection_config' => array(
'to' => 'janainap@gmail.com',
'username' => 'jesusvieiradelima@gmail.com', #E-Mail de autenticação
'password' => '****', #Senha do e-mail para autenticar
'ssl' => 'ssl', #Tipo do envio
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment