emailing 0.0.1
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 +7 -0
- data/lib/emailing.rb +29 -0
- metadata +45 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 58ba23a4282c65160ede98abc53c3a43ed3273e1
|
|
4
|
+
data.tar.gz: 7995aeaa9d5d06d5fab169bc50d1c329d3afacdd
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 8c6dc735e820f3e79749262d8ae72e377bbd3666fc9671af1dc5cedf91c67c93d1aef29e65a269381b7d4892538738992286d2ed20ae62bdd32b00464a596bf4
|
|
7
|
+
data.tar.gz: 50b9cb80ac0ed97867f7b5b9cadb68a1013953beba7adb7a0f459e48c1bccfa97467d51887174e268250e2794b3729f75f1326381f1a5d0e647a3bf6011367bd
|
data/lib/emailing.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
require 'mail'
|
|
2
|
+
class BigzooMailer
|
|
3
|
+
|
|
4
|
+
def self.welcomeEmail(userEmail,emailSubject,emailBody)
|
|
5
|
+
|
|
6
|
+
options = { :address => "smtp.gmail.com",
|
|
7
|
+
:port => 587,
|
|
8
|
+
:domain => 'your.host.name',
|
|
9
|
+
:user_name => 'bigzoobooks',
|
|
10
|
+
:password => 'Ireland123',
|
|
11
|
+
:authentication => 'plain',
|
|
12
|
+
:enable_starttls_auto => true }
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Mail.defaults do
|
|
17
|
+
delivery_method :smtp, options
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
Mail.deliver do
|
|
21
|
+
to userEmail
|
|
22
|
+
from 'bigzoobooks@gmail.com'
|
|
23
|
+
subject emailSubject
|
|
24
|
+
body emailBody
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: emailing
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Marcelo Silva
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: "it is a simple gem that sends an authenticating email to the user when
|
|
14
|
+
signing up, it also sends an confirmating email to the users \t\t\t\twhen contacting
|
|
15
|
+
the administrator"
|
|
16
|
+
email: marceloperes.dasilva@student.ncirl.ie
|
|
17
|
+
executables: []
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- lib/emailing.rb
|
|
22
|
+
homepage: http://rubygems.org/gems/emailing
|
|
23
|
+
licenses: []
|
|
24
|
+
metadata: {}
|
|
25
|
+
post_install_message:
|
|
26
|
+
rdoc_options: []
|
|
27
|
+
require_paths:
|
|
28
|
+
- lib
|
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - '>='
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0'
|
|
39
|
+
requirements: []
|
|
40
|
+
rubyforge_project:
|
|
41
|
+
rubygems_version: 2.1.10
|
|
42
|
+
signing_key:
|
|
43
|
+
specification_version: 4
|
|
44
|
+
summary: This gem sends a validating email to the user
|
|
45
|
+
test_files: []
|