Skip to content

Instantly share code, notes, and snippets.

View diegosky1's full-sized avatar

Diego Quevedo diegosky1

View GitHub Profile
@spacedsweden
spacedsweden / SinchSMS.rb
Created February 29, 2016 20:36
Send sms with sinch in ruby
require "base64"
require "openssl"
require "time"
require "net/http"
require "uri"
require "json"
class SinchSms
def self.send(key, secret, message, to)
@jvenezia
jvenezia / rails_mailer_structure.md
Last active January 4, 2023 13:44
Rails mailer structure

Rails mailer structure

Your application is growing, and you are starting to have a complex mailing system: notification emails, retention emails, misc user emails, admin emails, etc...

It's time to clean up your mailers !

Existing mailer

You may already have a single mailer, responsible of every emails, like this one: