Created
October 26, 2011 03:13
-
-
Save aalvesjr/1315304 to your computer and use it in GitHub Desktop.
Erro ao enviar Emails com Rails 3.1.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
duas observação para marinheiros de primeira viagem: | |
1 . na linha: | |
default from: “remetente” | |
se você não usar um email valido no lugar do ‘remetente’ ele vai gerar o erro: | |
“Net::SMTPSyntaxError in UsersController#create 504 5.5.2 : Sender address rejected: need fully-qualified address” #em development | |
2. Dependendo do dominio que esteja usando pode aparecer a mensagem: | |
“OpenSSL::SSL::SSLError in UsersController#create | |
hostname was not match with the server certificate” | |
acrescente a linha : | |
config.action_mailer.smtp_settings = { | |
# … outras linhas | |
:enable_starttls_auto => true | |
} | |
em resposta a: http://rubyonrails.felipegonzales.com/?p=33#comment-3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment