fastlane-plugin-outlook 0.1.4 → 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: 4e7d57ec238cc7359e18a7d844f6e88886f8385569be165b1c2def770a037026
4
- data.tar.gz: ab3bee71a2880601e63f9f6455d248db26e3e53d028f20ffad3a2ad080c11312
3
+ metadata.gz: ba1aed4ef56e2cbea3f635b05409aeab150c48ae457fe71d1f89972f29aae369
4
+ data.tar.gz: 434de8cd545ca9ecc2fbebd753049b2c6d510ace577bfac6f6d65bcc3571c012
5
5
  SHA512:
6
- metadata.gz: 90f143316eae8190492ac1edc4c9b6a4ee9c8b23da1f5ed2d4b3f1ab3ee2cfe6d74da04f7e9e1f33a4f34b3cea9894c4ab22d4a43615b7923288e4c61e3eb96d
7
- data.tar.gz: 819744f9491dbc9eb341749760e6ba0ed2a5ad763404d76fdd4c5016bf7bae84bdcc0613294881454a0417ff25d51987a746f35c1e77d9429034c608576bf819
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
- Mail.defaults do
11
- if params[:password]
12
- delivery_method :smtp, {
13
- address: 'smtp.office365.com',
14
- port: 587,
15
- user_name: params[:username],
16
- password: params[:password],
17
- authentication: 'plain',
18
- enable_starttls_auto: true
19
- }
20
- else
21
- delivery_method :smtp, {
22
- port: 587,
23
- address: "smtp-relay.gmail.com",
24
- domain: params[:domain]
25
- }
26
- end
27
- end
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
- from params[:username]
31
- to params[:to]
32
- cc params[:cc]
33
- subject params[:subject]
34
- html_part do
35
- content_type 'text/html; charset=UTF-8'
36
- body params[:body]
37
- end
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Outlook
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-outlook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - OTVENTURES\Tarek.Mohammed