-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcredentials.rb
More file actions
32 lines (29 loc) · 855 Bytes
/
credentials.rb
File metadata and controls
32 lines (29 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ⚠️ WARNING, CONTAINS CREDENTIALS ⚠️
class Credentials
attr_reader :smtp_host, :smtp_port, :smtp_user, :smtp_pass, :auth_options, :name
# netcup example
def initialize
@smtp_host = 'smtp host'
@smtp_port = 587
@smtp_user = 'a'
@smtp_pass = 'b'
@name = 'Max Musterman'
@auth_options = {
:enable_starttls_auto => true
:authentication => 'plain',
}
end
# all-inkl example
def other_example
@smtp_host = 'smtp host'
@smtp_port = 465
@smtp_user = 'a'
@smtp_pass = 'b'
@name = 'Max Musterman'
@auth_options = {
:authentication => :login,
:ssl => true,
:openssl_verify_mode => 'none' #Use this because ssl is activated but we have no certificate installed. So clients need to confirm to use the untrusted url.
}
end
end