Google SMTP settings not sending email
Posted
by
Baboon
on Super User
See other posts from Super User
or by Baboon
Published on 2013-11-10T09:06:50Z
Indexed on
2013/11/10
10:00 UTC
Read the original article
Hit count: 328
I am having a hard time making the email sending in GitLab to work (changing email in profile settings). My server has exim4
, I can tell its working because if I do simple mail()
in PHP, it thus sends the email to the recipient. Now, in GitLab seems that it wasn't. So I modified productions.rb to have SMTP settings, and use Google SMTP:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 465,
user_name: "[email protected]",
password: "hashpassword",
domain: "gmail.com",
authentication: :plain,
enable_starttls_auto: true
}
I even tried changing the port to 587 and 467 but still it doesn't work. Why is that? Can you please lead me to where I am missing?
© Super User or respective owner