s_mail 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/lib/smail/version.rb +1 -1
- data/lib/smail.rb +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38e27e01499a2a630ff2a01b638128c9cdb99e66
|
4
|
+
data.tar.gz: b1d4f46808fb9df843125d16348576d2597b9fee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9191871e9c4e580e0b020328c74be4ab0fe23de1f6257099b4dc8d69128299c00b4beec5733dc8121cb53920a96d7ddbb8d772cefa43141e4211efcb26a9dc
|
7
|
+
data.tar.gz: 5a7ea92ec7df6c5140280bac2e55ab32c525a709dfc8557196d0ecd5dddfa095111538bfa12f7c463adc9ef12767df2a209e16b95c2d570d7e1ec974d96323dc
|
data/lib/smail/version.rb
CHANGED
data/lib/smail.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
require 'smail/version'
|
2
|
+
require 'mail'
|
3
|
+
require 'base64'
|
4
|
+
require 'socket'
|
2
5
|
|
3
6
|
module Smail
|
4
7
|
@@options = {}
|
@@ -8,7 +11,13 @@ module Smail
|
|
8
11
|
|
9
12
|
# Default options can be set so that they don't have to be repeated.
|
10
13
|
#
|
11
|
-
# Smail.options = {
|
14
|
+
# Smail.options = {
|
15
|
+
# :from => 'noreply@example.com',
|
16
|
+
# :via => :smtp,
|
17
|
+
# :via_options => {
|
18
|
+
# :host => 'smtp.yourserver.com'
|
19
|
+
# }
|
20
|
+
# }
|
12
21
|
# Smail.mail(:to => 'foo@bar') # Sends mail to foo@bar from noreply@example.com using smtp
|
13
22
|
# Smail.mail(:from => 'Smail@example.com', :to => 'foo@bar') # Sends mail to foo@bar from Smail@example.com using smtp
|
14
23
|
def self.options=(value)
|