0.02
No commit activity in last 3 years
No release in over 3 years
An adapter for using Sendcloud with Rails and Action Mailer
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.2.13
~> 2.14.1

Runtime

>= 3.2.13
>= 1.7.7
>= 1.6.7
 Project Readme

sendcloud_rails

Thanks for jorgemanrubia("https://github.com/jorgemanrubia/mailgun_rails")

sendcloud_rails is an Action Mailer adapter for using Sendcloud in Rails apps. It uses the Sendcloud HTTP API internally.

Installing

In your Gemfile

gem 'sendcloud_rails'

Usage

To configure your sendcloud credentials place the following code in the corresponding environment file (development.rb, production.rb...)

config.action_mailer.delivery_method = :sendcloud
config.action_mailer.sendcloud_settings = {
		api_user: '<apiUser>',
		api_key: '<apiKey>',
		api_url: 'http://api.sendcloud.net/apiv2/mail/send'
}

Now you can send emails using plain Action Mailer:

email = mail from: 'sender@email.com', to: 'receiver@email.com', subject: 'this is an email'

Pull requests are welcomed