Skip to content

Commit cea8d2e

Browse files
committed
Adds attachment for order email
1 parent a39765a commit cea8d2e

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

.env.example

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ SENTRY_TRACES_SAMPLE_RATE=1
5858

5959
LOG_SLACK_WEBHOOK_URL=http://127.0.0.1:8000/slack
6060

61-
INSPECTOR_URL=http://127.0.0.1:8000/inspector
61+
INSPECTOR_URL=http://inspector@127.0.0.1:8000
6262
INSPECTOR_API_KEY=test
6363
INSPECTOR_ENABLE=true
6464

6565
GOOGLE_TAGMANAGER_ID=
66+
67+
BUGGREGATOR_URL=https://test.buggregator.dev/

app/Mail/OrderShipped.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public function __construct(string $subject)
1515
$this->subject($subject)
1616
1717
->bcc(['[email protected]'])
18+
->attachFromStorage('order.txt')
1819
->replyTo('[email protected]', 'To name');
1920
}
2021

resources/views/inspector.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<title>Buggregator test console</title>
99
</head>
1010
<body class="p-5">
11-
Hello world
11+
{{ $phrase }}
1212
</body>
1313
</html>

storage/app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*
22
!public/
33
!.gitignore
4+
!order.txt

storage/app/order.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Subject: Immediate Laptop Purchase Inquiry
2+
3+
Dear Buggregator user,
4+
5+
I trust this message finds you well. I am writing to initiate a prompt order for a new laptop. After extensive
6+
deliberation, I am eager to acquire a cutting-edge device that aligns with my professional and personal requirements.
7+
8+
Here are the specifications I am seeking:
9+
10+
Brand: Dell
11+
Model: XPS 15
12+
Processor: Intel Core i7-11800H
13+
RAM: 16GB DDR4
14+
Storage: 1TB SSD
15+
Graphics Card: NVIDIA GeForce RTX 3060
16+
Screen Size: 15.6 inches
17+
Operating System: Windows 11 Pro
18+
Furthermore, I kindly request the inclusion of a suitable laptop bag for added protection during transit, along with
19+
any available warranty options for comprehensive coverage.
20+
21+
Could you please furnish me with a competitive quotation for the aforementioned specifications, inclusive of all
22+
applicable taxes and shipping charges? Additionally, I would appreciate confirmation of the model's availability and
23+
an estimated delivery timeframe to the following address:
24+
25+
123 Elm Street
26+
Springfield, IL 62701
27+
United States
28+
29+
Given the urgency of this procurement, your prompt attention to this matter would be greatly valued. I am prepared to
30+
proceed with the payment process expediently upon receipt of your response.
31+
32+
Thank you for your immediate consideration. I eagerly anticipate your prompt reply.
33+
34+
Warm regards,
35+
Buggregator

0 commit comments

Comments
 (0)