openrain-action_mailer_tls 1.1.0 → 1.1.1

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.markdown +22 -21
  2. data/VERSION.yml +1 -1
  3. metadata +2 -2
data/README.markdown CHANGED
@@ -4,29 +4,30 @@ ActionMailerTLS
4
4
  Background
5
5
  ----------
6
6
 
7
- This Ruby on Rails plugin makes it trivial to send email through a Google Apps for business account.
7
+ This gem makes it trivial to send email through a Gmail account or a Google Apps for business email account.
8
8
 
9
- This gem will only work on Ruby 1.8.6.
9
+ This gem will only work on Ruby 1.8.6. If you're on Ruby 1.8.7 and Rails >= 2.2.1, you don't need this gem. See Notes below.
10
10
 
11
11
  Installation
12
12
  ------------
13
13
 
14
- If you're on Ruby 1.8.7 and Rails >= 2.2.1, you don't need this plugin. See Notes below.
15
14
 
16
15
  To install the gem (the preferred way):
17
16
 
18
- 1. sudo gem install openrain-action_mailer_tls -s http://gems.github.com
19
- 2. ./script/generate action_mailer_tls
17
+ 1. `sudo gem install openrain-action_mailer_tls -s http://gems.github.com`
18
+ 2. `./script/generate action_mailer_tls`
20
19
  3. Copy RAILS_ROOT/config/smtp_gmail.yml.sample to RAILS_ROOT/config/smtp_gmail.yml
21
20
  4. Update the configuration file with your settings
22
21
 
23
- To (optionally) vendor this gem
24
- 1. Add config.gem "openrain-action_mailer_tls", :source => "http://gems.github.com"
22
+ To (optionally) vendor this gem:
23
+
24
+ 1. Add the following entry to config/environment.rb
25
+ * config.gem "openrain-action_mailer_tls", :lib => "smtp_tls.rb", :source => "http://gems.github.com"
25
26
  2. rake gems:unpack
26
27
 
27
- To install the plugin (the old way)
28
+ To install the plugin (the old way):
28
29
 
29
- 1. ./script/plugin install git://github.com/openrain/action_mailer_tls.git -r '1.0.0'
30
+ 1. `./script/plugin install git://github.com/openrain/action_mailer_tls.git -r '1.0.0'`
30
31
  2. Copy vendor/plugins/action_mailer_tls/sample/smtp_gmail.rb to config/
31
32
  3. Copy vendor/plugins/action_mailer_tls/sample/mailer.yml.sample to config/
32
33
  4. Update the configuration file with your settings
@@ -34,34 +35,34 @@ To install the plugin (the old way)
34
35
  Testing it out
35
36
  --------------
36
37
 
37
- 1. ./script/generate mailer Notifier hello_world
38
+ 1. `./script/generate mailer Notifier hello_world`
38
39
  2. Add the following lines to config/environments/development.rb
39
- config.action_mailer.raise_delivery_errors = true
40
- config.action_mailer.perform_deliveries = true
41
- config.action_mailer.delivery_method = :smtp
40
+ * config.action_mailer.raise_delivery_errors = true
41
+ * config.action_mailer.perform_deliveries = true
42
+ * config.action_mailer.delivery_method = :smtp
42
43
  3. Update the recipients and from fields in app/models/notifier.rb
43
- 4. ./script/console
44
- 5. >> Notifier.deliver_hello_world!
44
+ 4. `./script/console `
45
+ 5. `Notifier.deliver_hello_world!`
45
46
 
46
47
  Resources
47
48
  ---------
48
49
 
49
50
  Blog posts
50
51
 
51
- * http://www.rubyinside.com/how-to-use-gmails-smtp-server-with-rails-394.html
52
- * http://www.prestonlee.com/archives/63
52
+ * [How to use Gmail's SMTP server with Rails](http://www.rubyinside.com/how-to-use-gmails-smtp-server-with-rails-394.html)
53
+ * [Configuring Rails to use Gmail's SMTP server](http://www.prestonlee.com/2007/02/20/configuring-rails-to-use-gmails-smtp-server/63/)
53
54
 
54
55
  Books
55
56
 
56
- * Advanced Rails Recipes pg. 238, Recipe #47.
57
+ * This gem was also featured in Advanced Rails Recipes pg. 238, Recipe #47.
57
58
 
58
59
  Notes
59
60
  -----
60
61
 
61
- If you're running Rails >= 2.2.1 [RC2] and Ruby 1.8.7, you don't need this plugin. Ruby 1.8.7 supports
62
+ If you're running Rails >= 2.2.1 [RC2] and Ruby 1.8.7, you don't need this gem. Ruby 1.8.7 supports
62
63
  SMTP TLS and Rails 2.2.1 ships with an option to enable it if you're running Ruby 1.8.7.
63
64
 
64
- To set it all up, in config/initializers/smtp_gmail.rb:
65
+ To set it all up, in config/initializers/smtp_gmail.rb, make sure to set `:enable_starttls_auto` to `true`.
65
66
  ActionMailer::Base.smtp_settings = {
66
67
  :address => "smtp.gmail.com",
67
68
  :port => 587,
@@ -71,7 +72,7 @@ SMTP TLS and Rails 2.2.1 ships with an option to enable it if you're running Rub
71
72
  :password: h@ckme
72
73
  }
73
74
 
74
- http://github.com/rails/rails/commit/732c724df61bc8b780dc42817625b25a321908e4
75
+ For more information on this feature, check out the [commit log](http://github.com/rails/rails/commit/732c724df61bc8b780dc42817625b25a321908e4)
75
76
 
76
77
  Author
77
78
  ------
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 1
4
4
  :minor: 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openrain-action_mailer_tls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Chung
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-10 00:00:00 -08:00
12
+ date: 2009-02-11 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15