nifty-email 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/nifty-email/version.rb +1 -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: aec947947c09cb254e26814c2b1496564a1bf3af
|
4
|
+
data.tar.gz: 5b5d281625118af3c8efb5e90d4cb29b053a3f76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ee3c832ae7945d7428be4f0381500b1d7963b9b8190ddac9e23f42dffc39989d1bf47a24b5f0ea002418799d7049dddd423e531aa1a2cf09d66d3aefda257c
|
7
|
+
data.tar.gz: 2e20a1a2fd300eabbb69f35154c559fd7264dbc6b23452df19b6f4e5c81a59bab4fdd2ce33f6fba028ad14d24e37e06ffe344b872a572dc7d23575b7df73975f
|
data/README.md
CHANGED
@@ -39,6 +39,15 @@ NiftyEmail.token = '123abc'
|
|
39
39
|
|
40
40
|
email = NiftyEmail.get_email('awesome-email', full_name: 'Jim Tom')
|
41
41
|
|
42
|
+
mail(
|
43
|
+
to: 'jimtom@example.com',
|
44
|
+
subject: 'Welcome!',
|
45
|
+
body: email.html,
|
46
|
+
content_type: 'text/html'
|
47
|
+
)
|
48
|
+
|
49
|
+
# or with HTML and text parts
|
50
|
+
|
42
51
|
mail(to: 'jimtom@example.com', subject: 'Welcome!') do |format|
|
43
52
|
format.html { email.html }
|
44
53
|
format.text { email.text }
|
data/lib/nifty-email/version.rb
CHANGED