This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 25df879a5b45615065142ee89bbef06491d46a42
tree 62c1f01069caef3ae66f6164587d3328fb66ed3d
parent 2c54b0bc28b46faacd7f8e30553701724c8572f0
tree 62c1f01069caef3ae66f6164587d3328fb66ed3d
parent 2c54b0bc28b46faacd7f8e30553701724c8572f0
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jun 20 17:13:11 -0700 2008 | |
| |
LICENSE | Fri Jun 20 17:13:11 -0700 2008 | |
| |
README | Fri Jun 20 17:13:11 -0700 2008 | |
| |
Rakefile | Fri Jun 20 17:13:11 -0700 2008 | |
| |
TODO | Fri Jun 20 17:13:11 -0700 2008 | |
| |
lib/ | Sat Jun 21 11:23:49 -0700 2008 | |
| |
merb_mail_queue.gemspec | Fri Jun 20 17:13:11 -0700 2008 | |
| |
spec/ | Sat Jun 21 11:23:49 -0700 2008 |
README
merb_mail_queue
===============
A plugin for the Merb framework that provides mail queueing functionality.
Instead of sending emails right away, this plugin queues them into database
table and provides simple processor that loads queue and does send out in the
background.
Setup
===============
Add dependencies in your init file like this:
dependencies "merb-mailer", "merb_mail_queue"
Set up configuration and load plugin in after_app_loads hook. This plugin has
two configuration options: adapter name (only ActiveRecord is supported at the moment)
and mail queue job model class name. So it may look like this in the end.
Queue processor assumed to use your application mailer configuration.
Merb::BootLoader.after_app_loads do
Merb::Plugins.config[:merb_mail_queue] = {
:mail_queue_job_model_class_name => "MailQueueJob",
:adapter => :activerecord
}
Merb::MailQueue.load_plugin!
Merb::Mailer.config = {
:host => 'mail.your-domain.com',
:port => '25',
:user => 'webmaster',
:pass => 'supersecret',
:auth => :plain, # :plain, :login, :cram_md5, the default is no auth
:domain => "your-domain.com" # the HELO domain provided by the client to the server
}
end






