Skip to content

Commit

Permalink
Adds attachment for order email
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed May 4, 2024
1 parent a39765a commit cea8d2e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .env.example
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ SENTRY_TRACES_SAMPLE_RATE=1

LOG_SLACK_WEBHOOK_URL=http://127.0.0.1:8000/slack

INSPECTOR_URL=http://127.0.0.1:8000/inspector
INSPECTOR_URL=http://inspector@127.0.0.1:8000
INSPECTOR_API_KEY=test
INSPECTOR_ENABLE=true

GOOGLE_TAGMANAGER_ID=

BUGGREGATOR_URL=https://test.buggregator.dev/
1 change: 1 addition & 0 deletions app/Mail/OrderShipped.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function __construct(string $subject)
$this->subject($subject)
->cc(['cc@site.com'])
->bcc(['bcc@site.com'])
->attachFromStorage('order.txt')
->replyTo('reply-to@site.com', 'To name');
}

Expand Down
2 changes: 1 addition & 1 deletion resources/views/inspector.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<title>Buggregator test console</title>
</head>
<body class="p-5">
Hello world
{{ $phrase }}
</body>
</html>
1 change: 1 addition & 0 deletions storage/app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*
!public/
!.gitignore
!order.txt
35 changes: 35 additions & 0 deletions storage/app/order.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Subject: Immediate Laptop Purchase Inquiry

Dear Buggregator user,

I trust this message finds you well. I am writing to initiate a prompt order for a new laptop. After extensive
deliberation, I am eager to acquire a cutting-edge device that aligns with my professional and personal requirements.

Here are the specifications I am seeking:

Brand: Dell
Model: XPS 15
Processor: Intel Core i7-11800H
RAM: 16GB DDR4
Storage: 1TB SSD
Graphics Card: NVIDIA GeForce RTX 3060
Screen Size: 15.6 inches
Operating System: Windows 11 Pro
Furthermore, I kindly request the inclusion of a suitable laptop bag for added protection during transit, along with
any available warranty options for comprehensive coverage.

Could you please furnish me with a competitive quotation for the aforementioned specifications, inclusive of all
applicable taxes and shipping charges? Additionally, I would appreciate confirmation of the model's availability and
an estimated delivery timeframe to the following address:

123 Elm Street
Springfield, IL 62701
United States

Given the urgency of this procurement, your prompt attention to this matter would be greatly valued. I am prepared to
proceed with the payment process expediently upon receipt of your response.

Thank you for your immediate consideration. I eagerly anticipate your prompt reply.

Warm regards,
Buggregator

0 comments on commit cea8d2e

Please sign in to comment.