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 (
patnakajima (author)
Thu Feb 21 18:29:08 -0800 2008
commit d8e0d5d00b7d70dfeedb52ba94f20a57ece7a6ef
tree 3da39c18f8fd4ce1dcc66b76273168a5b7032268
parent 387bc3b2cfcb233abcbd49cb225c9af643a86fbd
tree 3da39c18f8fd4ce1dcc66b76273168a5b7032268
parent 387bc3b2cfcb233abcbd49cb225c9af643a86fbd
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Thu Feb 21 00:20:12 -0800 2008 | [patnakajima] |
| |
README | Thu Feb 21 18:29:08 -0800 2008 | [patnakajima] |
| |
Rakefile | Thu Feb 21 00:20:12 -0800 2008 | [patnakajima] |
| |
init.rb | Thu Feb 21 00:20:12 -0800 2008 | [patnakajima] |
| |
install.rb | Thu Feb 21 00:20:12 -0800 2008 | [patnakajima] |
| |
lib/ | Thu Feb 21 01:19:59 -0800 2008 | [patnakajima] |
| |
tasks/ | Thu Feb 21 00:20:12 -0800 2008 | [patnakajima] |
| |
test/ | Thu Feb 21 00:20:12 -0800 2008 | [patnakajima] |
README
ManyMailers
===========
Multiple SMTP servers for ActionMailer.
Example
=======
ProjectMailer.with_settings(:internal) do |mailer|
mailer.deliver_notification(blah)
end
USE
===
Create a YAML file in your config directory named "mail_servers.yml" Put
your mail settings in there like so (see mail_servers.yaml in this plugin's
test directory for a better example):
|default:
| address: mail.example.com
| port: 25
| domain: example.com
| user_name: test_user
| password: test_password
|
|internal:
| address: internal.example.com
| port: 25
| domain: example.com
| user_name: test_user
| password: test_password
The plugin will look for a server named "default" to use by default.
To specify the default server, do this:
ActionMailer.default_server = :internal
ActionMailer::Base (and all of its subclasses, ie, your mailers) will use this
server by default.
TODO
====
* Per-mailer settings (non-global)
* ActionMailer::Base#with_settings shouldn't modify SMTP settings for other
mailers besides the one that called it.
Copyright (c) 2008 Animoto Productions, released under the MIT license




