Follow 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.

  1. 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
    
  2. 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"
    
  3. Restart Web Server: Restart your web server which in my case is LiteSpeed.
  4. 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.

The Ruby Programming Language (Paperback)

By (author): David Flanagan, Yukihiro Matsumoto


List Price: $39.99 USD
New From: $20.80 USD In Stock
Used from: $13.79 USD In Stock

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , ,
8 Responses to “Redmine email.yml: Enable Email Sending Through Gmail”
  1. Alan says:

    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:

    Hello Alan,

    Did you restart your web server after adding the plugin? Could you post your email.yml file?

    [Reply]

  2. lee says:

    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:

    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]

  3. sawad says:

    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:

    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]

  4. sawad says:

    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:

    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]

  5.  
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*