No commit activity in last 3 years
No release in over 3 years
An adapter for using Surenotify 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

>= 4.2.11
~> 2.14.1

Runtime

>= 4.2.11
>= 2.1.0
>= 2.0.2
 Project Readme

surenotify_rails (電子豹非官方 Rails 套件)

surenotify_rails is an Action Mailer adapter for using 電子豹 Surenotify in Rails apps. It uses the Surenotify API internally.

Installing

In your Gemfile

gem 'surenotify_rails'

Usage

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

config.action_mailer.delivery_method = :surenotify
config.action_mailer.surenotify_settings = { api_key: '<surenotify api key>' }

Now you can send emails using plain Action Mailer:

email = mail from: 'sender@email.com', to: 'receiver@email.com', subject: 'this is an email'
or
email = mail from: 'Your Name Here <sender@email.com>', to: 'receiver@email.com', subject: 'this is an email'

Pull requests are welcomed