Error in redmine email notification via gmail

I install redmine on Ubuntu 10.04.2

here is my email.yml:

# Outgoing email settings production: delivery_method: :smtp smtp_settings: tls:true enable_starttls_auto: true address: "smtp.gmail.com" port: "587" domain: "smtp.gmail.com" authentication: :plain user_name: "******@gmail.com" password: "*****" development: delivery_method: :smtp smtp_settings: tls:true address: "smtp.gmail.com" port: "587" domain: "smtp.gmail.com" authentication: :plain user_name: "******@gmail.com" password: "*****" 

I start the redmine server as root, login redmine with administrator then Administration> Settings> Email notifications and then send the test mail by clicking on the link below

But I got the following: An error occurred while sending mail (getaddrinfo: name or service unknown)

is there anyone who sends mail via gmail? and please give me some suggestion

thanks in advance!

----------- append1 ----------------

I copy " production: " in config / email.yml to server # ==== SMTP when using TLS (GMail): "in /etc/redmine/default/configuration.yml and also change" # default configuration settings for all environments "in buttom configuration.yml

It works!

[CLOSED]

+4
source share

All Articles