Apr
24
2009
Redmine email.yml: Enable Email Sending Through Gmail
Posted by alex in Insights at 1:05 AMFollow the below instructions to have your Redmine application send email using TLS through Gmail. As long as you have a Gmail account you will be able to send mail through smtp.gmail.com.
- Install TLS: First install TLS for the Redmine project. Login to the server with the user that runs Redmine and issue the below command from the Redmine project root directory to install TLS.
./script/plugin install http://svn.douglasfshearer.com/rails/plugins/action_mailer_optional_tls
- Modify email.yml File: Now modify the email.yml file with contents similar to the below.
production: delivery_method: :smtp smtp_settings: tls: true address: smtp.gmail.com port: 587 domain: YOURDOMAIN authentication: :login user_name: "GMAILUSER" password: "GMAILPASSWORD"
- Restart Web Server: Restart your web server which in my case is LiteSpeed.
- Test Ticket Updates: Now update a ticket that belongs to you and see if you receive an update via email. If you do not then check the Administration >> Settings area to make sure everything is configured properly within Redmine.
|
|



Entries (RSS)
I tried this and it doesn’t seem to work for me. I get the error:
An error occurred while sending mail (wrong number of arguments (3 for 2))
I’m using Redmine 0.8, Rails 2.2.2 on Dreamhost. My error logs don’t seem to elaborate.
[Reply]
alex Reply:
May 2nd, 2009 at 8:01 PM
Hello Alan,
Did you restart your web server after adding the plugin? Could you post your email.yml file?
[Reply]
i’m a asp.net web developer assigned to install redmine (v. 0.8.2) on a windows 2003 server. i have it up and running using the bitnami installer. i’m running into some issues getting the emailer to work.
i’ve changed the email.yml and need to install the action_mailer_tls. i’ve tried runnig a “.script/plugin” but it doesn’t find my install path. can you be more specific like what is the proper redmine root directory? mine is installed at ‘c:\program files\bitnami redmine stack”.
thanks.
[Reply]
alex Reply:
June 30th, 2009 at 3:45 PM
Hello lee,
The root of the project is a variable. It is something you have set. So whatever directory has the following directories/files: Rakefile . config, doc, files, lib, public, script, test.rb, vendor, app, db, extra, lang, log, repos, test , and tmp.
Hope that helps.
Thanks.
Alex
[Reply]
Hi,
I have configured email notification for the redmine with gmail server, and it was working fine. But now, when i try to send a test email it gives the following error:
“An error occurred while sending mail (Connection timed out – connect(2))”
Please help
here is my email.yml file looks like:
production:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: :true
address: smtp.gmail.com
port: 587
domain: smtp.gmail.com # ‘your.domain.com’ for GoogleApps
authentication: :plain
tls: :true
user_name: me@gmail.com
password: password
[Reply]
alex Reply:
November 22nd, 2010 at 11:27 AM
Hello sawad,
How are you trying to send a test email? If by chance you have changed to development, staging, or another mode then you need to have those modes configured in the email.yml. Anyhow let us know how you are trying to send test emails and where the error above is being seen (shell output or logs)?
Thanks.
alex
[Reply]
Hello Alex,
Thank you for your reply. I use redmine interface to send test email. I go to administration->settings->email notification then i click on ‘send a test email’. I get the above error.
Thanking you,
Sawad
[Reply]
alex Reply:
November 30th, 2010 at 4:43 PM
Hello sawad,
Do you have a domain configured for GoogleApps? If not you should remove the domain setting. If that does not fix the issue then we will need to know what version of Redmine and if you have any plugins installed.
Thanks.
alex
[Reply]