jwulff-actionmailer_multiple_smtp 0.0.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +33 -33
  2. data/VERSION.yml +4 -0
  3. metadata +4 -12
data/README.rdoc CHANGED
@@ -4,40 +4,40 @@ Gives ActionMailer ability to user different SMTP accounts based on a message's
4
4
 
5
5
  In your environments (config/environments/*.rb) add something like this to make mail from 'special_sender@domain.com' use the :username => 'special_sender' SMTP settings and all other mail use the :username => 'mailer' SMTP settings.
6
6
 
7
- ActionMailer::Base.delivery_method = :smtp
8
- ActionMailer::Base.smtp_settings = {
9
- :address => 'smtp.domain.com',
10
- :domain => 'domain.com',
11
- :username => 'mailer',
12
- :password => '******'
13
- }
14
- ActionMailer::Base.smtp_settings_by_from_address['special_sender@domain.com'] = {
15
- :address => 'smtp.domain.com',
16
- :domain => 'domain.com',
17
- :username => 'special_sender',
18
- :password => '******'
19
- }
20
-
7
+ ActionMailer::Base.delivery_method = :smtp
8
+ ActionMailer::Base.smtp_settings = {
9
+ :address => 'smtp.domain.com',
10
+ :domain => 'domain.com',
11
+ :username => 'mailer',
12
+ :password => '******'
13
+ }
14
+ ActionMailer::Base.smtp_settings_by_from_address['special_sender@domain.com'] = {
15
+ :address => 'smtp.domain.com',
16
+ :domain => 'domain.com',
17
+ :username => 'special_sender',
18
+ :password => '******'
19
+ }
20
+
21
21
  If you're using GMail for SMTP, install the tlsmail gem and add something like this to your environments:
22
-
23
- Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
24
- ActionMailer::Base.delivery_method = :smtp
25
- ActionMailer::Base.smtp_settings = {
26
- :address => 'smtp.gmail.com',
27
- :port => 587,
28
- :domain => 'domain.com',
29
- :user_name => 'user@domain.com',
30
- :password => '******',
31
- :authentication => :plain
32
- }
33
- ActionMailer::Base.smtp_settings_by_from_address['special_sender@domain.com'] = {
34
- :address => 'smtp.gmail.com',
35
- :port => 587,
36
- :domain => 'domain.com',
37
- :user_name => 'special_sender@domain.com',
38
- :password => '******',
39
- :authentication => :plain
40
- }
22
+
23
+ Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
24
+ ActionMailer::Base.delivery_method = :smtp
25
+ ActionMailer::Base.smtp_settings = {
26
+ :address => 'smtp.gmail.com',
27
+ :port => 587,
28
+ :domain => 'domain.com',
29
+ :user_name => 'user@domain.com',
30
+ :password => '******',
31
+ :authentication => :plain
32
+ }
33
+ ActionMailer::Base.smtp_settings_by_from_address['special_sender@domain.com'] = {
34
+ :address => 'smtp.gmail.com',
35
+ :port => 587,
36
+ :domain => 'domain.com',
37
+ :user_name => 'special_sender@domain.com',
38
+ :password => '******',
39
+ :authentication => :plain
40
+ }
41
41
 
42
42
  == Copyright
43
43
 
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 1
3
+ :minor: 0
4
+ :patch: 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwulff-actionmailer_multiple_smtp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wulff
@@ -11,17 +11,8 @@ cert_chain: []
11
11
 
12
12
  date: 2009-04-28 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: actionmailer
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
14
+ dependencies: []
15
+
25
16
  description:
26
17
  email: john@johnwulff.com
27
18
  executables: []
@@ -35,6 +26,7 @@ files:
35
26
  - LICENSE
36
27
  - README.rdoc
37
28
  - Rakefile
29
+ - VERSION.yml
38
30
  - lib/actionmailer_multiple_smtp.rb
39
31
  - spec/actionmailer_multiple_smtp_spec.rb
40
32
  - spec/spec_helper.rb