Skip to content

Commit ce07e9f

Browse files
committed
Merge branch 'add-configurable-include-files-to-attachments'
2 parents 412e5ec + 6a92e44 commit ce07e9f

File tree

16 files changed

+63
-11
lines changed

16 files changed

+63
-11
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Features
3232
- [x] Provide request information ( http method, raw data, body data, query data, files data, cookie data, and ip address).
3333
- [x] Send Mail
3434
- [x] many receivers to listed configured email
35-
- [x] with include $_FILES into attachments on upload error.
35+
- [x] with include $_FILES into attachments on upload error (configurable to be included or not).
3636

3737
Installation
3838
------------
@@ -286,6 +286,9 @@ json
286286
// email sender
287287
'email-from' => 'Sender Name <sender@host.com>',
288288

289+
// to include or not $_FILES on send mail
290+
'include-files-to-attachments' => true,
291+
289292
'email-to-send' => [
290293
291294

config/error-hero-module.local.php.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ json
124124
// email sender
125125
'email-from' => 'Sender Name <[email protected]>',
126126

127+
// to include or not $_FILES on send mail
128+
'include-files-to-attachments' => true,
129+
127130
'email-to-send' => [
128131
129132

config/mezzio-error-hero-module.local.php.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ json
129129
// email sender
130130
'email-from' => 'Sender Name <[email protected]>',
131131

132+
// to include or not $_FILES on send mail
133+
'include-files-to-attachments' => true,
134+
132135
'email-to-send' => [
133136
134137

spec/Fixture/config/autoload-for-cannot-connect-to-db/error-hero-module.local.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
// email sender
9494
'email-from' => 'Sender Name <[email protected]>',
9595

96+
// to include or not $_FILES on send mail
97+
'include-files-to-attachments' => true,
98+
9699
'email-to-send' => [
97100
98101

spec/Fixture/config/autoload-for-enable-display-errors/error-hero-module.local.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
// email sender
9595
'email-from' => 'Sender Name <[email protected]>',
9696

97+
// to include or not $_FILES on send mail
98+
'include-files-to-attachments' => true,
99+
97100
'email-to-send' => [
98101
99102

spec/Fixture/config/autoload-for-specific-error-and-exception/error-hero-module.local.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
// email sender
9797
'email-from' => 'Sender Name <[email protected]>',
9898

99+
// to include or not $_FILES on send mail
100+
'include-files-to-attachments' => true,
101+
99102
'email-to-send' => [
100103
101104

spec/Fixture/config/autoload-for-xmlhttprequest-with-non-json-message/error-hero-module.local.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
// email sender
8888
'email-from' => 'Sender Name <[email protected]>',
8989

90+
// to include or not $_FILES on send mail
91+
'include-files-to-attachments' => true,
92+
9093
'email-to-send' => [
9194
9295

spec/Fixture/config/autoload-for-xmlhttprequest/error-hero-module.local.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
// email sender
9595
'email-from' => 'Sender Name <[email protected]>',
9696

97+
// to include or not $_FILES on send mail
98+
'include-files-to-attachments' => true,
99+
97100
'email-to-send' => [
98101
99102

spec/Fixture/config/autoload-with-doctrine/error-hero-module.local.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@
9191
// email sender
9292
'email-from' => 'Sender Name <[email protected]>',
9393

94+
// to include or not $_FILES on send mail
95+
'include-files-to-attachments' => true,
96+
9497
'email-to-send' => [
9598
9699

spec/Fixture/config/autoload-with-enable-sendmail-with-empty-email-receivers/error-hero-module.local.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
// email sender
9494
'email-from' => 'Sender Name <[email protected]>',
9595

96+
// to include or not $_FILES on send mail
97+
'include-files-to-attachments' => true,
98+
9699
'email-to-send' => [
97100
// no email in the list
98101
],

0 commit comments

Comments
 (0)