File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
packages/mail/src/Transports Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1717final class PostmarkConfig implements MailerConfig, ProvidesDefaultSender
1818{
1919 public string $ transport {
20- get => match ($ this ->sceme ) {
20+ get => match ($ this ->scheme ) {
2121 PostmarkConnectionScheme::API => PostmarkApiTransport::class,
2222 PostmarkConnectionScheme::SMTP => PostmarkSmtpTransport::class,
2323 };
@@ -54,8 +54,8 @@ public function createTransport(): TransportInterface
5454 {
5555 return new PostmarkTransportFactory ()->create (new Dsn (
5656 scheme: PostmarkConnectionScheme::API ->value ,
57- user: $ this ->key ,
5857 host: $ this ->host ?? 'default ' ,
58+ user: $ this ->key ,
5959 port: $ this ->port ,
6060 ));
6161 }
Original file line number Diff line number Diff line change 1717final class SesMailerConfig implements MailerConfig, ProvidesDefaultSender
1818{
1919 public string $ transport {
20- get => match ($ this ->sceme ) {
20+ get => match ($ this ->scheme ) {
2121 SesConnectionScheme::API => SesApiAsyncAwsTransport::class,
2222 SesConnectionScheme::HTTP => SesHttpAsyncAwsTransport::class,
2323 };
@@ -64,9 +64,9 @@ public function createTransport(): TransportInterface
6464 {
6565 return new SesTransportFactory ()->create (new Dsn (
6666 scheme: $ this ->scheme ->value ,
67+ host: $ this ->host ?? 'default ' ,
6768 user: $ this ->accessKey ,
6869 password: $ this ->secretKey ,
69- host: $ this ->host ?? 'default ' ,
7070 options: [
7171 'region ' => $ this ->region ,
7272 'session_token ' => $ this ->sessionToken ,
Original file line number Diff line number Diff line change 22
33namespace Tempest \Mail \Transports \Ses ;
44
5- use Symfony \Component \Mailer \Bridge \Amazon \Transport \SesApiAsyncAwsTransport ;
6- use Symfony \Component \Mailer \Bridge \Amazon \Transport \SesHttpAsyncAwsTransport ;
75use Symfony \Component \Mailer \Bridge \Amazon \Transport \SesSmtpTransport ;
86use Symfony \Component \Mailer \Bridge \Amazon \Transport \SesTransportFactory ;
97use Symfony \Component \Mailer \Transport \Dsn ;
10- use Symfony \Component \Mailer \Transport \NullTransport ;
118use Symfony \Component \Mailer \Transport \TransportInterface ;
129use Tempest \Mail \EmailAddress ;
1310use Tempest \Mail \MailerConfig ;
14- use UnitEnum ;
1511
1612/**
1713 * Send emails using Amazon SES.
@@ -61,9 +57,9 @@ public function createTransport(): TransportInterface
6157 {
6258 return new SesTransportFactory ()->create (new Dsn (
6359 scheme: 'ses+smtp ' ,
60+ host: $ this ->host ?? 'default ' ,
6461 user: $ this ->username ,
6562 password: $ this ->password ,
66- host: $ this ->host ?? 'default ' ,
6763 options: [
6864 'ping_threshold ' => $ this ->pingThreshold ,
6965 'region ' => $ this ->region ,
You can’t perform that action at this time.
0 commit comments