Skip to content

sendcloud rails api

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE
Notifications You must be signed in to change notification settings

dao42/sendcloud_rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: '[email protected]', to: '[email protected]', subject: 'this is an email'

Pull requests are welcomed

About

sendcloud rails api

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%