No release in over a year
Zoho ZeptoMail official Ruby SDK
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Zoho ZeptoMail Rails

Setup

gem install zoho_zeptomail-rails

You will have to initalize it in your Gem file with require "zoho_zeptomail-rails".

  1. Use the adapter:
  ActionMailer::Base.delivery_method = :zohozeptomail
  1. zoho_zeptomail-ruby gem requires ZOHO_ZEPTOMAIL_API_KEY_TOKEN and ZOHO_ZEPTOMAIL_HOSTED_REGION environment variable, so make sure it's set.

Email

Send an email

class TestMailer < ActionMailer::Base
  default from: 'michael@zylker.com'

  def msg(from, to, subject)
    mail(
      from: from,
      to: to,
      subject: subject,
      cc: 'rebeca@zylker.com'
    ) do
        |format|
        format.text { render plain: 'hello' }
        format.html { render html: '<div>This is a test email</div>'}
        attachments['filename.pdf'] = File.read('test/mailers/Hello.pdf')
        attachments['text_filename.txt'] = File.read('test/mailers/Hello.txt')
        attachments['image_filename.png'] = File.read('test/mailers/test.png')
    end
  end
end

class MailerTest < Minitest::Test
  def setup
  end

  def test_text_message
    TestMailer.msg( 'jerry@zylker.com', 'hello').deliver!
  end
end