8000 Add SES Session Token again to Symfony Mailer by Jubeki · Pull Request #38794 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

Add SES Session Token again to Symfony Mailer #38794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 51 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
22987f2
Adds policy option to make:model
tfevens Sep 8, 2021
22defeb
Style guide fixes
tfevens Sep 8, 2021
46d7093
Include --model to make:policy
tfevens Sep 10, 2021
27bcf13
return on null
taylorotwell Sep 10, 2021
363ad00
formatting
taylorotwell Sep 10, 2021
240bf68
Merge branch 'tfevens/8.x' into 8.x
taylorotwell Sep 10, 2021
50eca08
Cache: Provide psr/simple-cache-implementation (#38767)
Xenonym Sep 12, 2021
510651a
Use lowercase for hmac hash algorithm (#38787)
Krisell Sep 13, 2021
c42c356
allow tests to utilise the null logger (#38785)
timacdonald Sep 13, 2021
a228123
Add `deleteOrFail` to `Model` (#38784)
caugner Sep 13, 2021
11edec3
Fix tests
driesvints Sep 13, 2021
b4e3823
Bump DBAL
driesvints Sep 13, 2021
59ff96c
[8.x] Add `assertExists` testing method (#38766)
RVxLab Sep 13, 2021
cb56b3a
Revert "Fix tests"
driesvints Sep 13, 2021
bd3c4bb
Revert "Bump DBAL"
driesvints Sep 13, 2021
7d3151c
Disable test for now
driesvints Sep 13, 2021
3234a8d
Merge branch '8.x'
driesvints Sep 13, 2021
bcc81b8
Implement Symfony Mailer
driesvints Aug 20, 2021
1aad29a
Apply fixes from StyleCI
taylorotwell Aug 20, 2021
46f6564
Update src/Illuminate/Mail/Message.php
driesvints Aug 21, 2021
97b3dd7
Update src/Illuminate/Mail/Message.php
driesvints Aug 21, 2021
9a941fe
Update src/Illuminate/Mail/Message.php
driesvints Aug 21, 2021
508bc4e
Update src/Illuminate/Mail/Message.php
driesvints Aug 21, 2021
e9ae7da
Update src/Illuminate/Mail/Message.php
driesvints Aug 21, 2021
0ccecbe
Update Array and Log transports
driesvints Aug 23, 2021
de351bb
Apply fixes from StyleCI
taylorotwell Aug 23, 2021
d9b0b86
Fix interface implementation
driesvints Aug 23, 2021
e5d5987
Update Mailer
driesvints Aug 23, 2021
672ada6
Apply fixes from StyleCI
taylorotwell Aug 23, 2021
73cf0e6
Rename
driesvints Aug 23, 2021
a10eabe
Remove method
driesvints Aug 23, 2021
7d09674
Fix tests
driesvints Aug 23, 2021
4ad0098
Apply fixes from StyleCI
taylorotwell Aug 23, 2021
becc5ba
Work on Mailer tests
driesvints Aug 24, 2021
d861c9e
type-hint
driesvints Aug 24, 2021
3dab55a
Fix Mailer tests
driesvints Aug 25, 2021
6bbb476
Fix more tests
driesvints Aug 25, 2021
53969a4
Apply fixes from StyleCI
taylorotwell Aug 25, 2021
3e78769
Migrate Mailgun transport
driesvints Aug 27, 2021
dcdf58f
Migrate Postmark transport
driesvints Aug 27, 2021
c427ece
Replace SesTransport
driesvints Aug 30, 2021
a0253c8
Remove transports from dev dependencies
driesvints Aug 30, 2021
141caa9
Allow setting options on esmtp transport
driesvints Sep 2, 2021
b1ddbe5
Fix Postmark transport
driesvints Sep 3, 2021
d1c244a
Fix embedding files
driesvints Sep 3, 2021
f6e9fe7
Clarify API transports
driesvints Sep 3, 2021
493284c
Apply fixes from StyleCI
taylorotwell Sep 7, 2021
1bf1242
Fix SES transport setup
driesvints Sep 8, 2021
491cc37
Add MessageStreamId to Postmark Transport again (#38748)
Jubeki Sep 10, 2021
4938b1c
Update symfony mailer docblocks (#38773)
Jubeki Sep 12, 2021
f942a52
Add Session Token to SES Transport
Jubeki Sep 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix embedding files
  • Loading branch information
driesvints authored and Jubeki committed Sep 13, 2021
commit d1c244a856a5614c00f7bee289878b9e50b5366a
15 changes: 9 additions & 6 deletions src/Illuminate/Mail/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Mail;

use Illuminate\Support\Str;
use Illuminate\Support\Traits\ForwardsCalls;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Email;
Expand Down Expand Up @@ -243,20 +244,22 @@ public function attachData($data, $name, array $options = [])
}

/**
* Embed a file in the message.
* Embed a file in the message and get the CID.
*
* @param string $file
* @return $this
* @return string
*/
public function embed($file)
{
$this->message->embedFromPath($file);
$cid = Str::random(10);

return $this;
$this->message->embedFromPath($file, $cid);

return "cid:$cid";
}

/**
* Embed in-memory data in the message.
* Embed in-memory data in the message and get the CID.
*
* @param string $data
* @param string $name
Expand All @@ -267,7 +270,7 @@ public function embedData($data, $name, $contentType = null)
{
$this->message->embed($data, $name, $contentType);

return $this;
return "cid:$name";
}

/**
Expand Down
0