-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
39 lines (26 loc) · 881 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
WhitelistMailProxy
==================
A simple wrapper for the Mail gem / ActionMailer.
Allow regexp based whitelisting
Example
=======
Gemfile
gem "whitelist_mail_proxy"
config/staging.rb
config.action_mailer.delivery_method = :whitelist_proxy
# this will use the sendmail_settings defined elsewhere, or ActionMailer's default settings
config.action_mailer.whitelist_proxy_settings = {:
delivery_method =>:sendmail,
:regexp => /test@/,
}
or if you want a specific domain
config.action_mailer.whitelist_proxy_settings = {
:delivery_method => :sendmail,
:domain => "gmail.com",
}
or if you want multiple domains
config.action_mailer.whitelist_proxy_settings = {
:delivery_method =>:sendmail,
:domain => ["gmail.com", "hotmail.com"],
}
Copyright (c) 2010-2011 [Matthew Rudy Jacobs], released under the MIT license