Skip to content

Commit 0ab0445

Browse files
committed
chore: clean up
1 parent d81a898 commit 0ab0445

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Transport/NewsletterTransport.php

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Exception;
66
use GuzzleHttp\Exception\GuzzleException;
7-
use http\Env;
87
use Symfony\Component\Mailer\Envelope;
98
use Symfony\Component\Mailer\Exception\TransportException;
109
use Symfony\Component\Mailer\Transport\AbstractTransport;
@@ -38,6 +37,13 @@ public function __construct(TransactionMail $api)
3837
parent::__construct();
3938
}
4039

40+
/**
41+
* Send the given message.
42+
* Triggered by parent::send()
43+
*
44+
* @param SentMessage $message
45+
* @return void
46+
*/
4147
protected function doSend(SentMessage $message): void
4248
{
4349
try {
@@ -111,6 +117,6 @@ protected function buildAttachmentModels(Email $message): array
111117
*/
112118
public function __toString(): string
113119
{
114-
return "laravel-newsletter-driver";
120+
return "newsletter";
115121
}
116122
}

0 commit comments

Comments
 (0)