kurotoshiro-simpleMailer 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +11 -11
- data/VERSION +1 -1
- data/simpleMailer.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
|
@@ -4,20 +4,20 @@ SimpleMailer is a very simple wrapper for Ruby's net::smtp
|
|
|
4
4
|
|
|
5
5
|
== Usage
|
|
6
6
|
|
|
7
|
-
require "rubygems"
|
|
8
|
-
require "simpleMailer"
|
|
9
|
-
|
|
10
|
-
mail=SimpleMailer.new("some.smtp.com",port=25)
|
|
11
|
-
mail.to("foo@bar.com")
|
|
12
|
-
mail.from("simple@mailer.com")
|
|
13
|
-
mail.with_title("That's some title for you")
|
|
14
|
-
mail.message("Later you will be able to use HTML")
|
|
15
|
-
mail.with_files(["/tmp/awesome.file","~/archive.tbz2"])
|
|
16
|
-
mail.send # Nothing is really done before this point
|
|
7
|
+
require "rubygems"
|
|
8
|
+
require "simpleMailer"
|
|
9
|
+
|
|
10
|
+
mail=SimpleMailer.new("some.smtp.com",port=25)
|
|
11
|
+
mail.to("foo@bar.com")
|
|
12
|
+
mail.from("simple@mailer.com")
|
|
13
|
+
mail.with_title("That's some title for you")
|
|
14
|
+
mail.message("Later you will be able to use HTML")
|
|
15
|
+
mail.with_files(["/tmp/awesome.file","~/archive.tbz2"])
|
|
16
|
+
mail.send # Nothing is really done before this point
|
|
17
17
|
|
|
18
18
|
But you could have :
|
|
19
19
|
|
|
20
|
-
mail.to("foo@bar").from("foo@bar").with_title("title").message("message").send
|
|
20
|
+
mail.to("foo@bar").from("foo@bar").with_title("title").message("message").send
|
|
21
21
|
|
|
22
22
|
== Testing
|
|
23
23
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.4
|
data/simpleMailer.gemspec
CHANGED