Skip to content

reklim/sendgrid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A gem for adding sendgrid support in rails 3 malers. Works ONLY with rails 3, and supports only
sendgrid categories for now (that’s only one feature I need for now).

Installation

Add
gem 'sendgrid', :git => 'git://github.com/uzzz/sendgrid.git'
to your Gemfile

Usage


class UserMailer < ActionMailer::Base
  # enable sendgrid support
  sendgrid

  def confirmation(user)
    mail(:to => user.email,
         :from => 'noreply@example.com',
         :subject => 'Email confirmation',
         :sg_category => 'registration') # set sendgrid category
  end
end

About

Gem for adding sendgrid features to rails mailers

Resources

Stars

Watchers

Forks

Packages

No packages published