defra_ruby_email 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +97 -2
  3. data/lib/defra_ruby_email/version.rb +1 -1
  4. data/lib/tasks/defra_ruby_email.rake +8 -0
  5. data/lib/tasks/defra_ruby_email_tasks.rake +7 -6
  6. data/spec/dummy/log/test.log +1120 -49
  7. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{AU/AUfMxF1097iBMMdRbzJKjyzoRLp1W-b_VuQ4p0OxWfw.cache → -1/-1BjuvSsW1rCpefR7glJHMud1DLwZoVAx5_Z_mPwHo4.cache} +0 -0
  8. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2-/2-japRDu0GHGko1cjVWjELVh5v9nz6Q45a2beIwLUrI.cache +0 -0
  9. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Ps/PsDzIFzt3gBnxeXvfMfYXZ2E6DyEFleyRRfR01u34_8.cache → 81/81588Xu4GiMoeou3yHXxs3-f9_yfdXqbwuaETRulD28.cache} +0 -0
  10. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/B5/B5OLh2y7CLTgfdROC0dphxzI0KC-NWuzUoZ5fHcA6Bg.cache +0 -0
  11. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L4/L46n6ueXJJsYfqBb0tgyq4pu-Pmwghcq4wxrrvue0iI.cache +0 -0
  12. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MG/MGzsWSZq4b8vtnPxO8zkfdIwLVmVdcXFO1l9ao9g8D8.cache +0 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{q3/q3Z4d58Hu6dSbyJh-BeC0P0-vMjbI8cfMsHN73-B3gs.cache → PS/PStiiDWVRCoGz0zh9AyGGYw-NL719AHASXzUcraXuK4.cache} +0 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_M/_MsZgIvurUGOXpB0mEZtVC6mrSMcnyTk7p_1psw3G-g.cache +0 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{_D/_DYI9CGjZuQS99rHeuP1Zczax1DlXobV7fQAOlFZbW0.cache → _N/_N7_nLPKodCl5251L_3bTnwwkBvx2AwkLbUV5Z8HvLU.cache} +0 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{z9/z9x_Zb62GyFCL1ZoYErl-HHrPL6AqOOgaLaDlJ9KaEo.cache → gO/gO6-qLyub_3zujLUCWrZWb8Ig-jRPx1MEpo7fXphjkE.cache} +0 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gm/gm8TWq2tpBcsn1xscp-vNMVweRDHm10LXftKrZ3WL3E.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pP/pPe-s4lIFwyYOpBJcOCFWCqVHJzKmr-bXTMajg0vA0U.cache +0 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{y9/y9pXiDOCIiEqKn-ES0eCNUjJ7cSQFn31eombd1vJzj4.cache → qw/qwZ6TAF23lS_f7igVINV-PE6ggLvFTq5av_F5qwfrVY.cache} +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s4/s4_2m7OtzbFTNr3n5Zn_xY2uGLRIzpG24UgWUwG3yKA.cache +0 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{Uz/Uzp0b_uvqxkh0hY1pfL1MUpkNlf4zy_eYSBnRQQFiC0.cache → tK/tK3OH6WKDhryEEm5kQkWh2gBBU8GAEWa1muxRdANk9A.cache} +0 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/{sQ/sQNMSYgTkDcfTlnbqMpLd6Erufaoxo61qkVPy4YgY3A.cache → u3/u3fhZ-__f3hx8fRaMim0oAM1ShseNiKXbHL6Fp-bvMY.cache} +0 -0
  23. data/spec/examples.txt +16 -8
  24. metadata +19 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60ee4255b7585ffeb1bf0627b25297617890bc0a
4
- data.tar.gz: 979836d5d4392fc967b698a97a83290f69681662
3
+ metadata.gz: b00e08ce7effb5e0064ee915f3d70f57a51d5e79
4
+ data.tar.gz: f0618994c4c4b0b28164b43cdba1be2476e64dfb
5
5
  SHA512:
6
- metadata.gz: 48f158c118f2c523ede07ac3e6182cf4871cedb45461ec63bc8e72794712b029cc92cad20650e6aea80ba67af23c031517bebbf2e37186668d0e74f00b0084fa
7
- data.tar.gz: 4030b982847e303196cdea3e55df38ae57843d54ac7e78c8968c83f4f76a5577f2069540e20f797a7a97ae205476e39655a5cc172a5c294f94f49b0b9e05c1ce
6
+ metadata.gz: 323309727943c0d6d85b925545c03edcdf0f5fe768cd7c32ce792ad62cda9155e7aa8461462bee7c4ef327bdd46e836227ce228c2efe9fe428f63237f935f316
7
+ data.tar.gz: c862f985597fc5bb60eeb69d9c721d81652caf608efc3064b4947809b334f7ac89dce053ef10b22923ca49545edb2312f12f702a8bfb8ab3816b5180da425575
data/README.md CHANGED
@@ -6,8 +6,6 @@
6
6
  [![security](https://hakiri.io/github/DEFRA/defra-ruby-email/master.svg)](https://hakiri.io/github/DEFRA/defra-ruby-email/master)
7
7
  [![Licence](https://img.shields.io/badge/Licence-OGLv3-blue.svg)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3)
8
8
 
9
- > Work in progress. This project is not yet complete!
10
-
11
9
  A Rails Engine used by the [Ruby services team](https://github.com/DEFRA/ruby-services-team) in their digital services.
12
10
 
13
11
  We use it to allow us to access the content of the last email sent by an app. This information is used by our [acceptance tests](https://github.com/DEFRA/waste-carriers-acceptance-tests) to confirm emails are being sent with the expected content.
@@ -21,6 +19,103 @@ Make sure you already have:
21
19
  - Ruby 2.4.2
22
20
  - [Bundler](http://bundler.io/) – for installing Ruby gems
23
21
 
22
+ ## Mounting the engine
23
+
24
+ Add the engine to your Gemfile:
25
+
26
+ ```ruby
27
+ gem "defra_ruby_email"
28
+ ```
29
+
30
+ Install it with `bundle install`.
31
+
32
+ Then mount the engine in your routes.rb file:
33
+
34
+ ```ruby
35
+ Rails.application.routes.draw do
36
+ mount DefraRubyEmail::Engine => "/email"
37
+ end
38
+ ```
39
+
40
+ The engine should now be mounted at `/email` in your project. You can change `"/email"` to a different route if you'd prefer it to be elsewhere.
41
+
42
+ ## Configuration
43
+
44
+ For the email routes to be accessible you'll also need to enable them.
45
+
46
+ ```ruby
47
+ # config/initializers/defra_ruby_email.rb
48
+ require "defra_ruby_email"
49
+
50
+ DefraRubyEmail.configure do |config|
51
+ config.enable = true
52
+ end
53
+ ```
54
+
55
+ To protect against having this enabled when in production, by default the engine will not allow access unless it has been enabled in the config.
56
+
57
+ ## Last email
58
+
59
+ When no emails have been sent accessing the `/email/last-email` page will return
60
+
61
+ ```json
62
+ {
63
+ "error": "No emails sent."
64
+ }
65
+ ```
66
+
67
+ If an email has been sent you'll get something like this
68
+
69
+ ```json
70
+ {
71
+ "last_email": {
72
+ "date": "2020-02-19T14:06:11+00:00",
73
+ "from": [
74
+ "registrations@my-env.aws.defra.cloud"
75
+ ],
76
+ "to": [
77
+ "qizy@example.com"
78
+ ],
79
+ "bcc": null,
80
+ "cc": null,
81
+ "reply_to": null,
82
+ "subject": "Waste exemptions registration WEX000060 completed",
83
+ "body": "<!doctype html>\n<!--[if lt IE 7]> <html class=\"ie ie ... </body>\n</html>\n",
84
+ "attachments": [
85
+ "WEX000060.pdf",
86
+ "privacy_policy.pdf",
87
+ "govuk_logotype_email.png"
88
+ ]
89
+ }
90
+ }
91
+ ```
92
+
93
+ ### Multiple emails
94
+
95
+ We know that some services will fire multiple emails at the same time, for example where the form filler and the contact email are different.
96
+
97
+ It's important to note only the last email sent is retained.
98
+
99
+ ### Multiple processes
100
+
101
+ In a production environment it is likely that the same app will be deployed to multiple servers, and might even spawn multiple processes if an appplication server like [Passenger](https://www.phusionpassenger.com/) is used.
102
+
103
+ So trying to get the last email sent by an application is not possible. Ensure in your tests that you build in a retry function that allows you to hit an environment multiple times in order to confirm if an expected email has been sent.
104
+
105
+ ## Rake tasks
106
+
107
+ ### Test email
108
+
109
+ The gem includes a rake helper function that allows you to test an environment has been correctly configured for sending email. It relies on the environment and the app the engine is mounted into having the necessary setup to allow emails to send.
110
+
111
+ ```bash
112
+ EMAIL_TEST_ADDRESS=hitme@gmail.com bundle exec rake defra_ruby_email:test
113
+ ```
114
+
115
+ If all is well, a multi-part email (both HTML and Text) with an attached image should be received at the `EMAIL_TEST_ADDRESS` you specify.
116
+
117
+ It will also output the result of sending the email to the console.
118
+
24
119
  ## Installation
25
120
 
26
121
  You don't need to do this if you're just mounting the engine without making any changes.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyEmail
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # namespace :defra_ruby_email do
4
+ # desc "Explaining what the task does"
5
+ # task :test do
6
+ # # Task goes here
7
+ # end
8
+ # end
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # namespace :defra_ruby_email do
4
- # desc "Explaining what the task does"
5
- # task :test do
6
- # # Task goes here
7
- # end
8
- # end
3
+ namespace :defra_ruby_email do
4
+ desc "Send a test email to confirm setup is correct"
5
+ task test: :environment do
6
+ recipient = ENV["EMAIL_TEST_ADDRESS"] || "defra-ruby-email@example.com"
7
+ puts DefraRubyEmail::TestMailer.multipart_email(recipient, true).deliver_now
8
+ end
9
+ end
@@ -1,53 +1,1124 @@
1
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:32:46 +0000
1
+
2
+ DefraRubyEmail::TestMailer#multi_part_email: processed outbound mail in 322.7ms
3
+
4
+ Sent mail to test@example.com (25.4ms)
5
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
6
+ From: defra-ruby-email@example.com
7
+ To: test@example.com
8
+ Message-ID: <5e4181d0d84b_1245c3fd21e0337cc2448b@ip-172-16-0-210.eu-west-2.compute.internal.mail>
9
+ Subject: Multi-part email
10
+ Mime-Version: 1.0
11
+ Content-Type: multipart/mixed;
12
+ boundary="--==_mimepart_5e4181d0a88e_1245c3fd21e0337cc243ed";
13
+ charset=UTF-8
14
+ Content-Transfer-Encoding: 7bit
15
+
16
+
17
+ ----==_mimepart_5e4181d0a88e_1245c3fd21e0337cc243ed
18
+ Content-Type: text/plain;
19
+ charset=UTF-8
20
+ Content-Transfer-Encoding: 7bit
21
+
22
+ This is a multi-part email so calling `my_email.parts.first.body` is fine and will return this text.
23
+ ----==_mimepart_5e4181d0a88e_1245c3fd21e0337cc243ed
24
+ Content-Type: image/png
25
+ Content-Transfer-Encoding: base64
26
+ Content-Disposition: attachment;
27
+ filename=govuk_logotype_email.png
28
+ Content-ID: <5e4181d01035b_1245c3fd21e0337cc245b@ip-172-16-0-210.eu-west-2.compute.internal.mail>
29
+
30
+ iVBORw0KGgoAAAANSUhEUgAAAJgAAAAfCAIAAACUFZMWAAAN4ElEQVR42u2b
31
+ CVTVxR7HLwqKgiyyCYpiKgaIoqKoCCa4AC4gLqhAvU6AImhaJvrsPE1TQW0R
32
+ 993jimHmbgkW2J5LiXWs1ExzySXTUtwq3+cxzznj/d/7fxdUjr735kz//nfm
33
+ N8P85/vbZzTUqGFXs6Za7Y1eqDVq1BRPR0cnT08vD4861Fq1HMRYC6udvb2F
34
+ lWL3MKodz8enUspDb9BAaLoyq7W1TXBwmzNnzly6dOnbb7/18WlYvbqt/nC1
35
+ 8RFFQp3z8WUgCaQqfNp3XliNwWCwtrYuKSm5c+fOtm3b+EkRvRp6E7hWCiNX
36
+ JiqURwhmwz07zjv/2TvY29dCc0psqlevQUta2pDmzVu89tprf/75Z0pKamRk
37
+ JC2IKUuRlJCJys8KA1nLwSGgWbPILl2io6ObBQY6OTuX96vc3N1bBwfHxMR0
38
+ 6969RVAQM1SaJnRwdHRxdS2rbo5OTubo6RI0PBnygCVS2DyDwUpIWx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waFpSxCCU3KohQK3CLDro6np74fmi5sPDw+g0aVOCCoaubGzvFATVbHNi8
106
+ uaPTQ7lFxxkn4ROr1Vc2VGjgPCovD+kGpUG9kioyODiiJFGhRp4M5ShWwq9h
107
+ rJ+fP0kigLw7s/0DutdKeRxvhVfiBWWJJbtPBVGRZhMXXAk/qLxoq+ySt1sZ
108
+ CwdQja47P+StrHzUKY8GtFogBXgCErUSMur8Mw/tXWQxieZe63+1TFAeAYnU
109
+ r/biqUNgyRBdYfp/vS8uoRgs+KdYFsFM1Yf5fx2Mh1z/CTAVkdpf/S9lAAAA
110
+ AElFTkSuQmCC
111
+
112
+ ----==_mimepart_5e4181d0a88e_1245c3fd21e0337cc243ed--
113
+
114
+
115
+ DefraRubyEmail::TestMailer#multi_part_email: processed outbound mail in 3.3ms
116
+
117
+ Sent mail to test@example.com (3.3ms)
118
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
119
+ From: defra-ruby-email@example.com
120
+ To: test@example.com
121
+ Message-ID: <5e4181d0137b6_1245c3fd21e0337cc247d1@ip-172-16-0-210.eu-west-2.compute.internal.mail>
122
+ Subject: Multi-part email
123
+ Mime-Version: 1.0
124
+ Content-Type: multipart/mixed;
125
+ boundary="--==_mimepart_5e4181d01302f_1245c3fd21e0337cc2468d";
126
+ charset=UTF-8
127
+ Content-Transfer-Encoding: 7bit
128
+
129
+
130
+ ----==_mimepart_5e4181d01302f_1245c3fd21e0337cc2468d
131
+ Content-Type: text/plain;
132
+ charset=UTF-8
133
+ Content-Transfer-Encoding: 7bit
134
+
135
+ This is a multi-part email so calling `my_email.parts.first.body` is fine and will return this text.
136
+ ----==_mimepart_5e4181d01302f_1245c3fd21e0337cc2468d
137
+ Content-Type: image/png
138
+ Content-Transfer-Encoding: base64
139
+ Content-Disposition: attachment;
140
+ filename=govuk_logotype_email.png
141
+ Content-ID: <5e4181d013b1e_1245c3fd21e0337cc248b4@ip-172-16-0-210.eu-west-2.compute.internal.mail>
142
+
143
+ iVBORw0KG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xyA4fPqxyiTySM8ijfHKkH374Id0T
210
+ J07EFx04cBC7KULDCRMmoEvHjh2HByUMBk9UK7YzNTVt1qxZ6FURmaGWUcLL
211
+ l68Q+WUQlZftdOwKOk3MrF9QGCqQFTuPhGnkx2trjx49tEMQIIRGR4vAakbz
212
+ yOMa/SJZyvIbAj179tQcZilXPdjuMh8nC14WEbG0t8oo0XIbIDG2RhIApXB5
213
+ xIkHpW/ffndzfqaAtDN2KfXP91kxxlgNPypwQ0Cbl9B6tvJc3VzKifqkn596
214
+ rwCFbETg7uFBzCp3SVvoggCy8gJJ3bRpk7rzKHkBpL3QrqjENm1C7jyIwuxX
215
+ rlwuCzFtynX5auCgQe9/8AEfqU6F/0I7vVOnTtUAqb2z0w9FZ/LOjkyF61cZ
216
+ O2qvU6gVnoChhRUgmWByKo6g0e1kEtTZ+EmM0Kp1a0FTASBhIxIyqk+AyjXI
217
+ +3MEIU5OtTnrIg7BWeUAEucFOUBzcpJFGTHi+fR0VHqGqLzTMvlf5VUcpby8
218
+ PKwaFpSxCCU3KohQK3CLDro6np74fmi5sPDw+g0aVOCCoaubGzvFATVbHNi8
219
+ uaPTQ7lFxxkn4ROr1Vc2VGjgPCovD+kGpUG9kioyODiiJFGhRp4M5ShWwq9h
220
+ rJ+fP0kigLw7s/0DutdKeRxvhVfiBWWJJbtPBVGRZhMXXAk/qLxoq+ySt1sZ
221
+ CwdQja47P+StrHzUKY8GtFogBXgCErUSMur8Mw/tXWQxieZe63+1TFAeAYnU
222
+ r/biqUNgyRBdYfp/vS8uoRgs+KdYFsFM1Yf5fx2Mh1z/CTAVkdpf/S9lAAAA
223
+ AElFTkSuQmCC
224
+
225
+ ----==_mimepart_5e4181d01302f_1245c3fd21e0337cc2468d--
226
+
227
+
228
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
229
+
230
+ Sent mail to test@example.com (1.4ms)
231
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
232
+ From: defra-ruby-email@example.com
233
+ To: test@example.com
234
+ Message-ID: <5e4181d0149ec_1245c3fd21e0337cc249ec@ip-172-16-0-210.eu-west-2.compute.internal.mail>
235
+ Subject: Basic email
236
+ Mime-Version: 1.0
237
+ Content-Type: text/plain;
238
+ charset=UTF-8
239
+ Content-Transfer-Encoding: 7bit
240
+
241
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
242
+
243
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
244
+
245
+ Sent mail to test@example.com (1.4ms)
246
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
247
+ From: defra-ruby-email@example.com
248
+ To: test@example.com
249
+ Message-ID: <5e4181d0153f4_1245c3fd21e0337cc250e9@ip-172-16-0-210.eu-west-2.compute.internal.mail>
250
+ Subject: Basic email
251
+ Mime-Version: 1.0
252
+ Content-Type: text/plain;
253
+ charset=UTF-8
254
+ Content-Transfer-Encoding: 7bit
255
+
256
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
257
+
258
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
259
+
260
+ Sent mail to test@example.com (1.4ms)
261
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
262
+ From: defra-ruby-email@example.com
263
+ To: test@example.com
264
+ Message-ID: <5e4181d015e20_1245c3fd21e0337cc25199@ip-172-16-0-210.eu-west-2.compute.internal.mail>
265
+ Subject: Basic email
266
+ Mime-Version: 1.0
267
+ Content-Type: text/plain;
268
+ charset=UTF-8
269
+ Content-Transfer-Encoding: 7bit
270
+
271
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
272
+
273
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
274
+
275
+ Sent mail to joe.bloggs@example.com (1.4ms)
276
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
277
+ From: defra-ruby-email@example.com
278
+ To: joe.bloggs@example.com
279
+ Message-ID: <5e4181d0165c3_1245c3fd21e0337cc2528c@ip-172-16-0-210.eu-west-2.compute.internal.mail>
280
+ Subject: Basic email
281
+ Mime-Version: 1.0
282
+ Content-Type: text/plain;
283
+ charset=UTF-8
284
+ Content-Transfer-Encoding: 7bit
285
+
286
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
287
+
288
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.5ms
289
+
290
+ Sent mail to test@example.com (2.5ms)
291
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
292
+ From: defra-ruby-email@example.com
293
+ To: test@example.com
294
+ Message-ID: <5e4181d017193_1245c3fd21e0337cc253e5@ip-172-16-0-210.eu-west-2.compute.internal.mail>
295
+ Subject: Basic email
296
+ Mime-Version: 1.0
297
+ Content-Type: text/plain;
298
+ charset=UTF-8
299
+ Content-Transfer-Encoding: 7bit
300
+
301
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
302
+
303
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.6ms
304
+
305
+ Sent mail to joe.bloggs@example.com (1.5ms)
306
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
307
+ From: defra-ruby-email@example.com
308
+ To: joe.bloggs@example.com
309
+ Message-ID: <5e4181d017d88_1245c3fd21e0337cc254a5@ip-172-16-0-210.eu-west-2.compute.internal.mail>
310
+ Subject: Basic email
311
+ Mime-Version: 1.0
312
+ Content-Type: text/plain;
313
+ charset=UTF-8
314
+ Content-Transfer-Encoding: 7bit
315
+
316
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
317
+
318
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.5ms
319
+
320
+ Sent mail to test@example.com (1.4ms)
321
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
322
+ From: defra-ruby-email@example.com
323
+ To: test@example.com
324
+ Message-ID: <5e4181d01898a_1245c3fd21e0337cc255f7@ip-172-16-0-210.eu-west-2.compute.internal.mail>
325
+ Subject: Basic email
326
+ Mime-Version: 1.0
327
+ Content-Type: text/plain;
328
+ charset=UTF-8
329
+ Content-Transfer-Encoding: 7bit
330
+
331
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
332
+
333
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
334
+
335
+ Sent mail to joe.bloggs@example.com (1.5ms)
336
+ Date: Mon, 10 Feb 2020 16:16:16 +0000
337
+ From: defra-ruby-email@example.com
338
+ To: joe.bloggs@example.com
339
+ Message-ID: <5e4181d019149_1245c3fd21e0337cc2561e@ip-172-16-0-210.eu-west-2.compute.internal.mail>
340
+ Subject: Basic email
341
+ Mime-Version: 1.0
342
+ Content-Type: text/plain;
343
+ charset=UTF-8
344
+ Content-Transfer-Encoding: 7bit
345
+
346
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
347
+ Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-10 16:16:16 +0000
348
+ Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-10 16:16:16 +0000
2
349
  Processing by DefraRubyEmail::TestController#show as HTML
3
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (4.3ms)
4
- Completed 200 OK in 214ms (Views: 213.6ms)
5
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:32:46 +0000
6
- Processing by DefraRubyEmail::TestController#show as HTML
7
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (0.1ms)
8
- Completed 200 OK in 2ms (Views: 2.1ms)
9
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:33:13 +0000
10
- Processing by DefraRubyEmail::TestController#show as HTML
11
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (4.2ms)
12
- Completed 200 OK in 288ms (Views: 287.9ms)
13
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:33:13 +0000
14
- Processing by DefraRubyEmail::TestController#show as HTML
15
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (0.1ms)
16
- Completed 200 OK in 2ms (Views: 1.8ms)
17
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:35:25 +0000
18
- Processing by DefraRubyEmail::TestController#show as HTML
19
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (4.3ms)
20
- Completed 200 OK in 250ms (Views: 249.3ms)
21
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:35:25 +0000
22
- Processing by DefraRubyEmail::TestController#show as HTML
23
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (0.1ms)
24
- Completed 200 OK in 2ms (Views: 1.9ms)
25
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:38:23 +0000
26
- Processing by DefraRubyEmail::TestController#show as HTML
27
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (7.2ms)
28
- Completed 200 OK in 252ms (Views: 251.7ms)
29
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:38:23 +0000
30
- Processing by DefraRubyEmail::TestController#show as HTML
31
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (0.1ms)
32
- Completed 200 OK in 2ms (Views: 1.9ms)
33
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:38:55 +0000
34
- Processing by DefraRubyEmail::TestController#show as HTML
35
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (5.1ms)
36
- Completed 200 OK in 287ms (Views: 286.5ms)
37
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:38:55 +0000
38
- Processing by DefraRubyEmail::TestController#show as HTML
39
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (0.1ms)
40
- Completed 200 OK in 2ms (Views: 1.5ms)
41
- Started GET "/defra_ruby_mocks/company" for 127.0.0.1 at 2020-02-07 17:43:35 +0000
42
- Started GET "/defra_ruby_mocks/company" for 127.0.0.1 at 2020-02-07 17:44:16 +0000
43
- Started GET "/defra_ruby_mocks/company" for 127.0.0.1 at 2020-02-07 17:44:16 +0000
44
- Started GET "/defra_ruby_mocks/company" for 127.0.0.1 at 2020-02-07 17:44:16 +0000
45
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:45:07 +0000
46
- Processing by DefraRubyEmail::TestController#show as HTML
47
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (4.6ms)
48
- Completed 200 OK in 277ms (Views: 277.1ms)
49
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:45:07 +0000
350
+ Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (2.7ms)
351
+ Completed 200 OK in 161ms (Views: 161.1ms)
352
+ Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-10 16:16:16 +0000
50
353
  Processing by DefraRubyEmail::TestController#show as HTML
51
354
  Rendered /Users/acruikshanks/projects/defra/defra-ruby-email/app/views/defra_ruby_email/test/show.html.erb within layouts/defra_ruby_email/application (0.1ms)
52
355
  Completed 200 OK in 2ms (Views: 1.8ms)
53
- Started GET "/defra_ruby_email/test" for 127.0.0.1 at 2020-02-07 17:45:07 +0000
356
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:27:46 +0000
357
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:27:46 +0000
358
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:31:22 +0000
359
+
360
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 243.9ms
361
+
362
+ Sent mail to test@example.com (11.5ms)
363
+ Date: Mon, 10 Feb 2020 16:31:48 +0000
364
+ From: defra-ruby-email@example.com
365
+ To: test@example.com
366
+ Message-ID: <5e4185743c8aa_1443a3fd6ea03379c796e2@ip-172-16-0-210.eu-west-2.compute.internal.mail>
367
+ Subject: Basic email
368
+ Mime-Version: 1.0
369
+ Content-Type: text/plain;
370
+ charset=UTF-8
371
+ Content-Transfer-Encoding: 7bit
372
+
373
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
374
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:31:48 +0000
375
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:31:48 +0000
376
+
377
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 238.7ms
378
+
379
+ Sent mail to test@example.com (11.6ms)
380
+ Date: Mon, 10 Feb 2020 16:32:41 +0000
381
+ From: defra-ruby-email@example.com
382
+ To: test@example.com
383
+ Message-ID: <5e4185a923e56_146d53ff52c8337ac11835@ip-172-16-0-210.eu-west-2.compute.internal.mail>
384
+ Subject: Basic email
385
+ Mime-Version: 1.0
386
+ Content-Type: text/plain;
387
+ charset=UTF-8
388
+ Content-Transfer-Encoding: 7bit
389
+
390
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
391
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:32:41 +0000
392
+ Processing by DefraRubyEmail::LastEmailController#show as HTML
393
+ Completed 200 OK in 3ms (Views: 0.1ms)
394
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:32:41 +0000
395
+
396
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 231.8ms
397
+
398
+ Sent mail to test@example.com (10.2ms)
399
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
400
+ From: defra-ruby-email@example.com
401
+ To: test@example.com
402
+ Message-ID: <5e4185cdc14_148b53ffb8e4337ac86592@ip-172-16-0-210.eu-west-2.compute.internal.mail>
403
+ Subject: Basic email
404
+ Mime-Version: 1.0
405
+ Content-Type: text/plain;
406
+ charset=UTF-8
407
+ Content-Transfer-Encoding: 7bit
408
+
409
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
410
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:33:17 +0000
411
+ Processing by DefraRubyEmail::LastEmailController#show as HTML
412
+ Completed 200 OK in 3ms (Views: 0.1ms)
413
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:33:17 +0000
414
+
415
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.6ms
416
+
417
+ Sent mail to test@example.com (1.8ms)
418
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
419
+ From: defra-ruby-email@example.com
420
+ To: test@example.com
421
+ Message-ID: <5e4185cdae22_148b53ffb8e4337ac8664c@ip-172-16-0-210.eu-west-2.compute.internal.mail>
422
+ Subject: Basic email
423
+ Mime-Version: 1.0
424
+ Content-Type: text/plain;
425
+ charset=UTF-8
426
+ Content-Transfer-Encoding: 7bit
427
+
428
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
429
+
430
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.6ms
431
+
432
+ Sent mail to joe.bloggs@example.com (1.7ms)
433
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
434
+ From: defra-ruby-email@example.com
435
+ To: joe.bloggs@example.com
436
+ Message-ID: <5e4185cdb81a_148b53ffb8e4337ac8671c@ip-172-16-0-210.eu-west-2.compute.internal.mail>
437
+ Subject: Basic email
438
+ Mime-Version: 1.0
439
+ Content-Type: text/plain;
440
+ charset=UTF-8
441
+ Content-Transfer-Encoding: 7bit
442
+
443
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
444
+
445
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.6ms
446
+
447
+ Sent mail to test@example.com (1.8ms)
448
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
449
+ From: defra-ruby-email@example.com
450
+ To: test@example.com
451
+ Message-ID: <5e4185cdcc1e_148b53ffb8e4337ac86815@ip-172-16-0-210.eu-west-2.compute.internal.mail>
452
+ Subject: Basic email
453
+ Mime-Version: 1.0
454
+ Content-Type: text/plain;
455
+ charset=UTF-8
456
+ Content-Transfer-Encoding: 7bit
457
+
458
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
459
+
460
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.7ms
461
+
462
+ Sent mail to joe.bloggs@example.com (2.5ms)
463
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
464
+ From: defra-ruby-email@example.com
465
+ To: joe.bloggs@example.com
466
+ Message-ID: <5e4185cdd97a_148b53ffb8e4337ac869e1@ip-172-16-0-210.eu-west-2.compute.internal.mail>
467
+ Subject: Basic email
468
+ Mime-Version: 1.0
469
+ Content-Type: text/plain;
470
+ charset=UTF-8
471
+ Content-Transfer-Encoding: 7bit
472
+
473
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
474
+
475
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.6ms
476
+
477
+ Sent mail to test@example.com (1.9ms)
478
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
479
+ From: defra-ruby-email@example.com
480
+ To: test@example.com
481
+ Message-ID: <5e4185cde892_148b53ffb8e4337ac87054@ip-172-16-0-210.eu-west-2.compute.internal.mail>
482
+ Subject: Basic email
483
+ Mime-Version: 1.0
484
+ Content-Type: text/plain;
485
+ charset=UTF-8
486
+ Content-Transfer-Encoding: 7bit
487
+
488
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
489
+
490
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.7ms
491
+
492
+ Sent mail to joe.bloggs@example.com (1.8ms)
493
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
494
+ From: defra-ruby-email@example.com
495
+ To: joe.bloggs@example.com
496
+ Message-ID: <5e4185cdf397_148b53ffb8e4337ac871ba@ip-172-16-0-210.eu-west-2.compute.internal.mail>
497
+ Subject: Basic email
498
+ Mime-Version: 1.0
499
+ Content-Type: text/plain;
500
+ charset=UTF-8
501
+ Content-Transfer-Encoding: 7bit
502
+
503
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
504
+
505
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.6ms
506
+
507
+ Sent mail to test@example.com (1.8ms)
508
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
509
+ From: defra-ruby-email@example.com
510
+ To: test@example.com
511
+ Message-ID: <5e4185cd10d94_148b53ffb8e4337ac872af@ip-172-16-0-210.eu-west-2.compute.internal.mail>
512
+ Subject: Basic email
513
+ Mime-Version: 1.0
514
+ Content-Type: text/plain;
515
+ charset=UTF-8
516
+ Content-Transfer-Encoding: 7bit
517
+
518
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
519
+
520
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.7ms
521
+
522
+ Sent mail to test@example.com (2.0ms)
523
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
524
+ From: defra-ruby-email@example.com
525
+ To: test@example.com
526
+ Message-ID: <5e4185cd11ca0_148b53ffb8e4337ac87314@ip-172-16-0-210.eu-west-2.compute.internal.mail>
527
+ Subject: Basic email
528
+ Mime-Version: 1.0
529
+ Content-Type: text/plain;
530
+ charset=UTF-8
531
+ Content-Transfer-Encoding: 7bit
532
+
533
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
534
+
535
+ DefraRubyEmail::TestMailer#multi_part_email: processed outbound mail in 12.4ms
536
+
537
+ Sent mail to test@example.com (3.8ms)
538
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
539
+ From: defra-ruby-email@example.com
540
+ To: test@example.com
541
+ Message-ID: <5e4185cd15b40_148b53ffb8e4337ac875fc@ip-172-16-0-210.eu-west-2.compute.internal.mail>
542
+ Subject: Multi-part email
543
+ Mime-Version: 1.0
544
+ Content-Type: multipart/mixed;
545
+ boundary="--==_mimepart_5e4185cd151fb_148b53ffb8e4337ac87444";
546
+ charset=UTF-8
547
+ Content-Transfer-Encoding: 7bit
548
+
549
+
550
+ ----==_mimepart_5e4185cd151fb_148b53ffb8e4337ac87444
551
+ Content-Type: text/plain;
552
+ charset=UTF-8
553
+ Content-Transfer-Encoding: 7bit
554
+
555
+ This is a multi-part email so calling `my_email.parts.first.body` is fine and will return this text.
556
+ ----==_mimepart_5e4185cd151fb_148b53ffb8e4337ac87444
557
+ Content-Type: image/png
558
+ Content-Transfer-Encoding: base64
559
+ Content-Disposition: attachment;
560
+ filename=govuk_logotype_email.png
561
+ Content-ID: <5e4185cd15f32_148b53ffb8e4337ac876e2@ip-172-16-0-210.eu-west-2.compute.internal.mail>
562
+
563
+ iVBORw0KGgoAAAANSUhEUgAAAJgAAAAfCAIAAACUFZMWAAAN4ElEQVR42u2b
564
+ CVTVxR7HLwqKgiyyCYpiKgaIoqKoCCa4AC4gLqhAvU6AImhaJvrsPE1TQW0R
565
+ 993jimHmbgkW2J5LiXWs1ExzySXTUtwq3+cxzznj/d/7fxdUjr735kz//nfm
566
+ N8P85/vbZzTUqGFXs6Za7Y1eqDVq1BRPR0cnT08vD4861Fq1HMRYC6udvb2F
567
+ lWL3MKodz8enUspDb9BAaLoyq7W1TXBwmzNnzly6dOnbb7/18WlYvbqt/nC1
568
+ 8RFFQp3z8WUgCaQqfNp3XliNwWCwtrYuKSm5c+fOtm3b+EkRvRp6E7hWCiNX
569
+ JiqURwhmwz07zjv/2TvY29dCc0psqlevQUta2pDmzVu89tprf/75Z0pKamRk
570
+ JC2IKUuRlJCJys8KA1nLwSGgWbPILl2io6ObBQY6OTuX96vc3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+ +3MEIU5OtTnrIg7BWeUAEucFOUBzcpJFGTHi+fR0VHqGqLzTMvlf5VUcpby8
638
+ PKwaFpSxCCU3KohQK3CLDro6np74fmi5sPDw+g0aVOCCoaubGzvFATVbHNi8
639
+ uaPTQ7lFxxkn4ROr1Vc2VGjgPCovD+kGpUG9kioyODiiJFGhRp4M5ShWwq9h
640
+ rJ+fP0kigLw7s/0DutdKeRxvhVfiBWWJJbtPBVGRZhMXXAk/qLxoq+ySt1sZ
641
+ CwdQja47P+StrHzUKY8GtFogBXgCErUSMur8Mw/tXWQxieZe63+1TFAeAYnU
642
+ r/biqUNgyRBdYfp/vS8uoRgs+KdYFsFM1Yf5fx2Mh1z/CTAVkdpf/S9lAAAA
643
+ AElFTkSuQmCC
644
+
645
+ ----==_mimepart_5e4185cd151fb_148b53ffb8e4337ac87444--
646
+
647
+
648
+ DefraRubyEmail::TestMailer#multi_part_email: processed outbound mail in 4.2ms
649
+
650
+ Sent mail to test@example.com (5.1ms)
651
+ Date: Mon, 10 Feb 2020 16:33:17 +0000
652
+ From: defra-ruby-email@example.com
653
+ To: test@example.com
654
+ Message-ID: <5e4185cd1819a_148b53ffb8e4337ac878c5@ip-172-16-0-210.eu-west-2.compute.internal.mail>
655
+ Subject: Multi-part email
656
+ Mime-Version: 1.0
657
+ Content-Type: multipart/mixed;
658
+ boundary="--==_mimepart_5e4185cd174d5_148b53ffb8e4337ac87778";
659
+ charset=UTF-8
660
+ Content-Transfer-Encoding: 7bit
661
+
662
+
663
+ ----==_mimepart_5e4185cd174d5_148b53ffb8e4337ac87778
664
+ Content-Type: text/plain;
665
+ charset=UTF-8
666
+ Content-Transfer-Encoding: 7bit
667
+
668
+ This is a multi-part email so calling `my_email.parts.first.body` is fine and will return this text.
669
+ ----==_mimepart_5e4185cd174d5_148b53ffb8e4337ac87778
670
+ Content-Type: image/png
671
+ Content-Transfer-Encoding: base64
672
+ Content-Disposition: attachment;
673
+ filename=govuk_logotype_email.png
674
+ Content-ID: <5e4185cd18798_148b53ffb8e4337ac879a4@ip-172-16-0-210.eu-west-2.compute.internal.mail>
675
+
676
+ iVBORw0KGgoAAAANSUhEUgAAAJgAAAAfCAIAAACUFZMWAAAN4ElEQVR42u2b
677
+ CVTVxR7HLwqKgiyyCYpiKgaIoqKoCCa4AC4gLqhAvU6AImhaJvrsPE1TQW0R
678
+ 993jimHmbgkW2J5LiXWs1ExzySXTUtwq3+cxzznj/d/7fxdUjr735kz//nfm
679
+ N8P85/vbZzTUqGFXs6Za7Y1eqDVq1BRPR0cnT08vD4861Fq1HMRYC6udvb2F
680
+ lWL3MKodz8enUspDb9BAaLoyq7W1TXBwmzNnzly6dOnbb7/18WlYvbqt/nC1
681
+ 8RFFQp3z8WUgCaQqfNp3XliNwWCwtrYuKSm5c+fOtm3b+EkRvRp6E7hWCiNX
682
+ JiqURwhmwz07zjv/2TvY29dCc0psqlevQUta2pDmzVu89tprf/75Z0pKamRk
683
+ JC2IKUuRlJCJys8KA1nLwSGgWbPILl2io6ObBQY6OTuX96vc3N1bBwfHxMR0
684
+ 6969RVAQM1SaJnRwdHRxdS2rbo5OTubo6RI0PBnygCVS2DyDwUpIWxkYLLCW
685
+ 6Dp06Os//vjjt99+++uvv3799Vfkcs+ePZA5ODiJ4WhaMZAZ5GySUSxhST9/
686
+ /2XLlp2/cOGOUvhzH3/88XPPPVfbxQUa/Rrft+9777138+ZNdYYrV668lZ/f
687
+ ITRUa4yffvpplXL4iBEmp928ebOkuX79OrtvbgGzcnMl5fq33jJHlrd+vSR7
688
+ 4403ZHu//v3VZWsH+vj4nDx5UtLwpbC7PUCqwgRmYNC7d9zSpctSUlKECaxa
689
+ 1cbKqqqtbY2SkkOMPH36NM8ff/yR5+7duwHNxqZatWrVIXBwcBw7duyiRYvC
690
+ w8OtrasJ0QRI5rdEIpOTky9fvnzHfDlx4oQEQ1uBecHChTrD+WaWZzSqnrc3
691
+ CkbSbHj7bZOT//LLL5KmoKCAlvsC0q6CQKJaPv30U/Wj4G/RZWC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caMURFk4ZDbHVRgCk0B2DAtTF48aUE8o
742
+ cc7VSXCeZZdUAKvKCi9GXenDhjHEQiDxyA4fPqxyiTySM8ijfHKkH374Id0T
743
+ J07EFx04cBC7KULDCRMmoEvHjh2HByUMBk9UK7YzNTVt1qxZ6FURmaGWUcLL
744
+ l68Q+WUQlZftdOwKOk3MrF9QGCqQFTuPhGnkx2trjx49tEMQIIRGR4vAakbz
745
+ yOMa/SJZyvIbAj179tQcZilXPdjuMh8nC14WEbG0t8oo0XIbIDG2RhIApXB5
746
+ xIkHpW/ffndzfqaAtDN2KfXP91kxxlgNPypwQ0Cbl9B6tvJc3VzKifqkn596
747
+ rwCFbETg7uFBzCp3SVvoggCy8gJJ3bRpk7rzKHkBpL3QrqjENm1C7jyIwuxX
748
+ rlwuCzFtynX5auCgQe9/8AEfqU6F/0I7vVOnTtUAqb2z0w9FZ/LOjkyF61cZ
749
+ O2qvU6gVnoChhRUgmWByKo6g0e1kEtTZ+EmM0Kp1a0FTASBhIxIyqk+AyjXI
750
+ +3MEIU5OtTnrIg7BWeUAEucFOUBzcpJFGTHi+fR0VHqGqLzTMvlf5VUcpby8
751
+ PKwaFpSxCCU3KohQK3CLDro6np74fmi5sPDw+g0aVOCCoaubGzvFATVbHNi8
752
+ uaPTQ7lFxxkn4ROr1Vc2VGjgPCovD+kGpUG9kioyODiiJFGhRp4M5ShWwq9h
753
+ rJ+fP0kigLw7s/0DutdKeRxvhVfiBWWJJbtPBVGRZhMXXAk/qLxoq+ySt1sZ
754
+ CwdQja47P+StrHzUKY8GtFogBXgCErUSMur8Mw/tXWQxieZe63+1TFAeAYnU
755
+ r/biqUNgyRBdYfp/vS8uoRgs+KdYFsFM1Yf5fx2Mh1z/CTAVkdpf/S9lAAAA
756
+ AElFTkSuQmCC
757
+
758
+ ----==_mimepart_5e4185cd174d5_148b53ffb8e4337ac87778--
759
+
760
+
761
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 237.8ms
762
+
763
+ Sent mail to test@example.com (10.3ms)
764
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
765
+ From: defra-ruby-email@example.com
766
+ To: test@example.com
767
+ Message-ID: <5e418818c80ee_1667a3fefc94337b418d8@ip-172-16-0-210.eu-west-2.compute.internal.mail>
768
+ Subject: Basic email
769
+ Mime-Version: 1.0
770
+ Content-Type: text/plain;
771
+ charset=UTF-8
772
+ Content-Transfer-Encoding: 7bit
773
+
774
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
775
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:43:04 +0000
776
+ Processing by DefraRubyEmail::LastEmailController#show as HTML
777
+ Completed 200 OK in 3ms (Views: 0.1ms)
778
+ Started GET "/defra_ruby_email/last-email" for 127.0.0.1 at 2020-02-10 16:43:04 +0000
779
+
780
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.6ms
781
+
782
+ Sent mail to test@example.com (1.7ms)
783
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
784
+ From: defra-ruby-email@example.com
785
+ To: test@example.com
786
+ Message-ID: <5e418818d17c5_1667a3fefc94337b419a3@ip-172-16-0-210.eu-west-2.compute.internal.mail>
787
+ Subject: Basic email
788
+ Mime-Version: 1.0
789
+ Content-Type: text/plain;
790
+ charset=UTF-8
791
+ Content-Transfer-Encoding: 7bit
792
+
793
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
794
+
795
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.5ms
796
+
797
+ Sent mail to test@example.com (1.6ms)
798
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
799
+ From: defra-ruby-email@example.com
800
+ To: test@example.com
801
+ Message-ID: <5e418818d2f18_1667a3fefc94337b42026@ip-172-16-0-210.eu-west-2.compute.internal.mail>
802
+ Subject: Basic email
803
+ Mime-Version: 1.0
804
+ Content-Type: text/plain;
805
+ charset=UTF-8
806
+ Content-Transfer-Encoding: 7bit
807
+
808
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
809
+
810
+ DefraRubyEmail::TestMailer#multi_part_email: processed outbound mail in 12.6ms
811
+
812
+ Sent mail to test@example.com (3.6ms)
813
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
814
+ From: defra-ruby-email@example.com
815
+ To: test@example.com
816
+ Message-ID: <5e418818d71a1_1667a3fefc94337b422f9@ip-172-16-0-210.eu-west-2.compute.internal.mail>
817
+ Subject: Multi-part email
818
+ Mime-Version: 1.0
819
+ Content-Type: multipart/mixed;
820
+ boundary="--==_mimepart_5e418818d68e5_1667a3fefc94337b42153";
821
+ charset=UTF-8
822
+ Content-Transfer-Encoding: 7bit
823
+
824
+
825
+ ----==_mimepart_5e418818d68e5_1667a3fefc94337b42153
826
+ Content-Type: text/plain;
827
+ charset=UTF-8
828
+ Content-Transfer-Encoding: 7bit
829
+
830
+ This is a multi-part email so calling `my_email.parts.first.body` is fine and will return this text.
831
+ ----==_mimepart_5e418818d68e5_1667a3fefc94337b42153
832
+ Content-Type: image/png
833
+ Content-Transfer-Encoding: base64
834
+ Content-Disposition: attachment;
835
+ filename=govuk_logotype_email.png
836
+ Content-ID: <5e418818d7574_1667a3fefc94337b423de@ip-172-16-0-210.eu-west-2.compute.internal.mail>
837
+
838
+ iVBORw0KGgoAAAANSUhEUgAAAJgAAAAfCAIAAACUFZMWAAAN4ElEQVR42u2b
839
+ CVTVxR7HLwqKgiyyCYpiKgaIoqKoCCa4AC4gLqhAvU6AImhaJvrsPE1TQW0R
840
+ 993jimHmbgkW2J5LiXWs1ExzySXTUtwq3+cxzznj/d/7fxdUjr735kz//nfm
841
+ N8P85/vbZzTUqGFXs6Za7Y1eqDVq1BRPR0cnT08vD4861Fq1HMRYC6udvb2F
842
+ lWL3MKodz8enUspDb9BAaLoyq7W1TXBwmzNnzly6dOnbb7/18WlYvbqt/nC1
843
+ 8RFFQp3z8WUgCaQqfNp3XliNwWCwtrYuKSm5c+fOtm3b+EkRvRp6E7hWCiNX
844
+ JiqURwhmwz07zjv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qb2z0w9FZ/LOjkyF61cZ
911
+ O2qvU6gVnoChhRUgmWByKo6g0e1kEtTZ+EmM0Kp1a0FTASBhIxIyqk+AyjXI
912
+ +3MEIU5OtTnrIg7BWeUAEucFOUBzcpJFGTHi+fR0VHqGqLzTMvlf5VUcpby8
913
+ PKwaFpSxCCU3KohQK3CLDro6np74fmi5sPDw+g0aVOCCoaubGzvFATVbHNi8
914
+ uaPTQ7lFxxkn4ROr1Vc2VGjgPCovD+kGpUG9kioyODiiJFGhRp4M5ShWwq9h
915
+ rJ+fP0kigLw7s/0DutdKeRxvhVfiBWWJJbtPBVGRZhMXXAk/qLxoq+ySt1sZ
916
+ CwdQja47P+StrHzUKY8GtFogBXgCErUSMur8Mw/tXWQxieZe63+1TFAeAYnU
917
+ r/biqUNgyRBdYfp/vS8uoRgs+KdYFsFM1Yf5fx2Mh1z/CTAVkdpf/S9lAAAA
918
+ AElFTkSuQmCC
919
+
920
+ ----==_mimepart_5e418818d68e5_1667a3fefc94337b42153--
921
+
922
+
923
+ DefraRubyEmail::TestMailer#multi_part_email: processed outbound mail in 5.2ms
924
+
925
+ Sent mail to test@example.com (4.0ms)
926
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
927
+ From: defra-ruby-email@example.com
928
+ To: test@example.com
929
+ Message-ID: <5e418818d9a07_1667a3fefc94337b4259a@ip-172-16-0-210.eu-west-2.compute.internal.mail>
930
+ Subject: Multi-part email
931
+ Mime-Version: 1.0
932
+ Content-Type: multipart/mixed;
933
+ boundary="--==_mimepart_5e418818d8ff0_1667a3fefc94337b424b2";
934
+ charset=UTF-8
935
+ Content-Transfer-Encoding: 7bit
936
+
937
+
938
+ ----==_mimepart_5e418818d8ff0_1667a3fefc94337b424b2
939
+ Content-Type: text/plain;
940
+ charset=UTF-8
941
+ Content-Transfer-Encoding: 7bit
942
+
943
+ This is a multi-part email so calling `my_email.parts.first.body` is fine and will return this text.
944
+ ----==_mimepart_5e418818d8ff0_1667a3fefc94337b424b2
945
+ Content-Type: image/png
946
+ Content-Transfer-Encoding: base64
947
+ Content-Disposition: attachment;
948
+ filename=govuk_logotype_email.png
949
+ Content-ID: <5e418818d9e4e_1667a3fefc94337b426f4@ip-172-16-0-210.eu-west-2.compute.internal.mail>
950
+
951
+ iVBORw0KGgoAAAANSUhEUgAAAJgAAAAfCAIAAACUFZMWAAAN4ElEQVR42u2b
952
+ CVTVxR7HLwqKgiyyCYpiKgaIoqKoCCa4AC4gLqhAvU6AImhaJvrsPE1TQW0R
953
+ 993jimHmbgkW2J5LiXWs1ExzySXTUtwq3+cxzznj/d/7fxdUjr735kz//nfm
954
+ N8P85/vbZzTUqGFXs6Za7Y1eqDVq1BRPR0cnT08vD4861Fq1HMRYC6udvb2F
955
+ lWL3MKodz8enUspDb9BAaLoyq7W1TXBwmzNnzly6dOnbb7/18WlYvbqt/nC1
956
+ 8RFFQp3z8WUgCaQqfNp3XliNwWCwtrYuKSm5c+fOtm3b+EkRvRp6E7hWCiNX
957
+ JiqURwhmwz07zjv/2TvY29dCc0psqlevQUta2pDmzVu89tprf/75Z0pKamRk
958
+ JC2IKUuRlJCJys8KA1nLwSGgWbPILl2io6ObBQY6OTuX96vc3N1bBwfHxMR0
959
+ 6969RVAQM1SaJnRwdHRxdS2rbo5OTubo6RI0PBnygCVS2DyDwUpIWxkYLLCW
960
+ 6Dp06Os//vjjt99+++uvv3799Vfkcs+ePZA5ODiJ4WhaMZAZ5GySUSxhST9/
961
+ /2XLlp2/cOGOUvhzH3/88XPPPVfbxQUa/Rrft+9777138+ZNdYYrV668lZ/f
962
+ ITRUa4yffvpplXL4iBEmp928ebOkuX79OrtvbgGzcnMl5fq33jJHlrd+vSR7
963
+ 4403ZHu//v3VZWsH+vj4nDx5UtLwpbC7PUCqwgRmYNC7d9zSpctSUlKECaxa
964
+ 1cbKqqqtbY2SkkOMPH36NM8ff/yR5+7duwHNxqZatWrVIXBwcBw7duyiRYvC
965
+ w8OtrasJ0QRI5rdEIpOTky9fvnzHfDlx4oQE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CC
1032
+
1033
+ ----==_mimepart_5e418818d8ff0_1667a3fefc94337b424b2--
1034
+
1035
+
1036
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.5ms
1037
+
1038
+ Sent mail to test@example.com (1.6ms)
1039
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
1040
+ From: defra-ruby-email@example.com
1041
+ To: test@example.com
1042
+ Message-ID: <5e418818daf02_1667a3fefc94337b42725@ip-172-16-0-210.eu-west-2.compute.internal.mail>
1043
+ Subject: Basic email
1044
+ Mime-Version: 1.0
1045
+ Content-Type: text/plain;
1046
+ charset=UTF-8
1047
+ Content-Transfer-Encoding: 7bit
1048
+
1049
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
1050
+
1051
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
1052
+
1053
+ Sent mail to joe.bloggs@example.com (1.5ms)
1054
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
1055
+ From: defra-ruby-email@example.com
1056
+ To: joe.bloggs@example.com
1057
+ Message-ID: <5e418818db7aa_1667a3fefc94337b42846@ip-172-16-0-210.eu-west-2.compute.internal.mail>
1058
+ Subject: Basic email
1059
+ Mime-Version: 1.0
1060
+ Content-Type: text/plain;
1061
+ charset=UTF-8
1062
+ Content-Transfer-Encoding: 7bit
1063
+
1064
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
1065
+
1066
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.5ms
1067
+
1068
+ Sent mail to test@example.com (1.5ms)
1069
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
1070
+ From: defra-ruby-email@example.com
1071
+ To: test@example.com
1072
+ Message-ID: <5e418818dc267_1667a3fefc94337b4298b@ip-172-16-0-210.eu-west-2.compute.internal.mail>
1073
+ Subject: Basic email
1074
+ Mime-Version: 1.0
1075
+ Content-Type: text/plain;
1076
+ charset=UTF-8
1077
+ Content-Transfer-Encoding: 7bit
1078
+
1079
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
1080
+
1081
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
1082
+
1083
+ Sent mail to joe.bloggs@example.com (1.5ms)
1084
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
1085
+ From: defra-ruby-email@example.com
1086
+ To: joe.bloggs@example.com
1087
+ Message-ID: <5e418818dcae0_1667a3fefc94337b430bc@ip-172-16-0-210.eu-west-2.compute.internal.mail>
1088
+ Subject: Basic email
1089
+ Mime-Version: 1.0
1090
+ Content-Type: text/plain;
1091
+ charset=UTF-8
1092
+ Content-Transfer-Encoding: 7bit
1093
+
1094
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
1095
+
1096
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.5ms
1097
+
1098
+ Sent mail to test@example.com (1.5ms)
1099
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
1100
+ From: defra-ruby-email@example.com
1101
+ To: test@example.com
1102
+ Message-ID: <5e418818dd546_1667a3fefc94337b43133@ip-172-16-0-210.eu-west-2.compute.internal.mail>
1103
+ Subject: Basic email
1104
+ Mime-Version: 1.0
1105
+ Content-Type: text/plain;
1106
+ charset=UTF-8
1107
+ Content-Transfer-Encoding: 7bit
1108
+
1109
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error
1110
+
1111
+ DefraRubyEmail::TestMailer#basic_email: processed outbound mail in 0.4ms
1112
+
1113
+ Sent mail to joe.bloggs@example.com (2.2ms)
1114
+ Date: Mon, 10 Feb 2020 16:43:04 +0000
1115
+ From: defra-ruby-email@example.com
1116
+ To: joe.bloggs@example.com
1117
+ Message-ID: <5e418818ddd90_1667a3fefc94337b43236@ip-172-16-0-210.eu-west-2.compute.internal.mail>
1118
+ Subject: Basic email
1119
+ Mime-Version: 1.0
1120
+ Content-Type: text/plain;
1121
+ charset=UTF-8
1122
+ Content-Transfer-Encoding: 7bit
1123
+
1124
+ This is a basic email, so calling `my_email.parts.first.body` would raise an error