I have written an article regarding how to set up Ruby on Rails Action Mailer to send email using Zoho email service some times ago. For those who don’t know redmine, “Redmine is a flexible project management web application. Written using the Ruby on Rails framework, it is cross-platform and cross-database.” (Taken from the official Redmine website) So if you are looking for a lightweight and free project management tools, do try it out. It won’t let you down.
You need to set up the email settings while configuring Redmine, so that Redmine will send out notifications with emails. There is an official documents on Redmine Email Configuration. However, it doesn’t cover how you can do it with Zoho. So below are steps on how you can do it.
Step 1: Create the Configuration File
Under the root directory of the redmine folder, copy the config/configuration.yml.example to config/configuration.yml
Step 2: Configure the Configuration File
Edit the settings file config/configuration.yml. Inside this file, you will find the following default settings:
# default configuration options for all environments default: # Outgoing emails configuration (see examples above) email_delivery: delivery_method: :smtp smtp_settings: address: smtp.example.net port: 25 domain: example.net authentication: :login user_name: "email@example.com" password: "redmine"
Change it to the following (replace the user_name and password):
# default configuration options for all environments default: # Outgoing emails configuration (see examples above) email_delivery: delivery_method: :smtp smtp_settings: address: smtp.zoho.com port: 465 domain: investingnote.com authentication: :plain user_name: "firstname.lastname@example.org" password: "password" ssl: true
Note that if you don’t set the ssl to true, you will see error “Email delivery error: Net::ReadTimeout” in the log/production.log. Also remember to restart your redmine service after you have updated the configuration.
Step 3: Change the sender email address
Go to the redmine settings page, under the tab ‘Email notifications’, change the ‘Emission email address’ to the email address you set in the above configuration.yml. If you don’t do so, you will face the following error while sending email.
Email delivery error: end of file reached