fastlane-plugin-outlook 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba1aed4ef56e2cbea3f635b05409aeab150c48ae457fe71d1f89972f29aae369
|
4
|
+
data.tar.gz: 434de8cd545ca9ecc2fbebd753049b2c6d510ace577bfac6f6d65bcc3571c012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e5a5345e5f8766550d7ab01a3016c8f5bedb1abb9c1181a7dd6362826b5600dd3abd95cbd37d3a36a70cf5e5ab61162c66c9d2ee16fbbbc2517284d722cde4
|
7
|
+
data.tar.gz: 2d0ace630648b1c2829f84ec166fb72039b6d312b822ba9831e5a7b61a36fea31c0c4f0c9c83a3aecc5af7c733887c1dcccc81c4fe5cab49a0993b8d01cc1f6c
|
@@ -6,36 +6,48 @@ module Fastlane
|
|
6
6
|
class OutlookAction < Action
|
7
7
|
def self.run(params)
|
8
8
|
require 'mail'
|
9
|
+
require 'sendgrid-ruby'
|
10
|
+
from = SendGrid::Email.new(email: 'Tarek.Mohammed@linkdev.com')
|
11
|
+
to = SendGrid::Email.new(email: 'eng.tarek13@gmail.com')
|
12
|
+
subject = 'Sending with Twilio SendGrid is Fun'
|
13
|
+
content = SendGrid::Content.new(type: 'text/plain', value: 'and easy to do anywhere, even with Ruby')
|
14
|
+
mail = SendGrid::Mail.new(from, subject, to, content)
|
9
15
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
16
|
+
sg = SendGrid::API.new(api_key: params[:username])
|
17
|
+
response = sg.client.mail._('send').post(request_body: mail.to_json)
|
18
|
+
puts response.status_code
|
19
|
+
puts response.body
|
20
|
+
puts response.parsed_body
|
21
|
+
puts response.headers
|
22
|
+
# Mail.defaults do
|
23
|
+
# if params[:password]
|
24
|
+
# delivery_method :smtp, {
|
25
|
+
# address: 'smtp.office365.com',
|
26
|
+
# port: 587,
|
27
|
+
# user_name: params[:username],
|
28
|
+
# password: params[:password],
|
29
|
+
# authentication: 'login',
|
30
|
+
# enable_starttls_auto: true
|
31
|
+
# }
|
32
|
+
# else
|
33
|
+
# delivery_method :smtp, {
|
34
|
+
# port: 587,
|
35
|
+
# address: "smtp-relay.gmail.com",
|
36
|
+
# domain: params[:domain]
|
37
|
+
# }
|
38
|
+
# end
|
39
|
+
#end
|
28
40
|
|
29
|
-
Mail.deliver do
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
end
|
41
|
+
# Mail.deliver do
|
42
|
+
# from params[:username]
|
43
|
+
# to params[:to]
|
44
|
+
# cc params[:cc]
|
45
|
+
# subject params[:subject]
|
46
|
+
# html_part do
|
47
|
+
# content_type 'text/html; charset=UTF-8'
|
48
|
+
# body params[:body]
|
49
|
+
# end
|
50
|
+
# end
|
39
51
|
end
|
40
52
|
|
41
53
|
def self.description
|