0.0
No commit activity in last 3 years
No release in over 3 years
When mail is sent from your application, Jabber Delivery will send it to jabber uid instead of email.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.3.0
>= 0
~> 2.6.0

Runtime

>= 0
 Project Readme

Jabber Delivery

This gem adds a method to ActionMailer which enables sending messages right to jabber.

Rails Setup

First add the gem to your Gemfile and run the bundle command to install it.

gem "jabber_delivery"

Then, create file config/jabber_delivery.yml and put there jabber credentials you're going to use:

jid: foobar@somejabber.com
password: here_goes_your_password

Now I can do in my devise resource:

class User < ActiveRecord::Base
  # ...
  def headers_for(action)
    { :to => address,                       # Got address from email field with format {email|jabber}:(address here)
      :delivery_method => delivery_method   # Depending on prefix, use :smtp or :jabber_delivery (just for example)
    }
  end
  # ...
end

Hope it will help.

Project Status

Most of project's structure is imported from letter_opener gem and for now it's not so serious.

Development & Feedback

Special thanks to the letter_opener gem for inspiring this project.