55namespace PhpList \Core \Domain \Messaging \Service ;
66
77use PhpList \Core \Domain \Messaging \Message \AsyncEmailMessage ;
8- use Symfony \Component \Mailer \Exception \TransportExceptionInterface ;
98use Symfony \Component \Mailer \MailerInterface ;
109use Symfony \Component \Messenger \MessageBusInterface ;
1110use Symfony \Component \Mime \Email ;
@@ -27,16 +26,6 @@ public function __construct(
2726 $ this ->messageBus = $ messageBus ;
2827 }
2928
30- /**
31- * Send a simple email asynchronously
32- *
33- * @param Email $email
34- * @param array $cc
35- * @param array $bcc
36- * @param array $replyTo
37- * @param array $attachments
38- * @return void
39- */
4029 public function sendEmail (
4130 Email $ email ,
4231 array $ cc = [],
@@ -52,17 +41,6 @@ public function sendEmail(
5241 $ this ->messageBus ->dispatch ($ message );
5342 }
5443
55- /**
56- * Send a simple email synchronously
57- *
58- * @param Email $email
59- * @param array $cc
60- * @param array $bcc
61- * @param array $replyTo
62- * @param array $attachments
63- * @return void
64- * @throws TransportExceptionInterface
65- */
6644 public function sendEmailSync (
6745 Email $ email ,
6846 array $ cc = [],
@@ -93,19 +71,6 @@ public function sendEmailSync(
9371 $ this ->mailer ->send ($ email );
9472 }
9573
96- /**
97- * Email multiple recipients asynchronously
98- *
99- * @param array $toAddresses Array of recipient email addresses
100- * @param string $subject Email subject
101- * @param string $text Plain text content
102- * @param string $html HTML content (optional)
103- * @param string|null $from Sender email address (optional, uses default if not provided)
104- * @param string|null $fromName Sender name (optional)
105- * @param array $attachments Array of file paths to attach (optional)
106- *
107- * @return void
108- */
10974 public function sendBulkEmail (
11075 array $ toAddresses ,
11176 string $ subject ,
@@ -132,20 +97,6 @@ public function sendBulkEmail(
13297 }
13398 }
13499
135- /**
136- * Email multiple recipients synchronously
137- *
138- * @param array $toAddresses Array of recipient email addresses
139- * @param string $subject Email subject
140- * @param string $text Plain text content
141- * @param string $html HTML content (optional)
142- * @param string|null $from Sender email address (optional, uses default if not provided)
143- * @param string|null $fromName Sender name (optional)
144- * @param array $attachments Array of file paths to attach (optional)
145- *
146- * @return void
147- * @throws TransportExceptionInterface
148- */
149100 public function sendBulkEmailSync (
150101 array $ toAddresses ,
151102 string $ subject ,
0 commit comments