Replies: 1 comment 1 reply
-
Hi there ✋🏻 You could try this: Mail::send([], [], function (Illuminate\Mail\Message $message) {
$message
->from('[email protected]')
->to('[email protected]')
->cc('[email protected]')
->bcc('[email protected]')
->replyTo('[email protected]')
->subject('Time for Symfony Mailer!')
->text('Sending emails is fun again!')
->html('<p>See Twig integration for better HTML integration!</p>');
}); where |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are currently updating the Aimeos package for Laravel 9. In Laravel 8 and before, it was possible to send an e-mail without implementing a Mailable class by accessing the SwiftMailer object directly. In Laravel 9, only the Symfony Mail Transport class is returned, which doesn't have a
send()
method. Is there still a way to send e-mail without implementing a Mailable like it's still possible according to the Symfony 6 mail example:What we would need is access to the
Symfony\Component\Mailer\Mailer
class or the corresponding Laravel class wrapping this object and which offers asend()
-like method.Beta Was this translation helpful? Give feedback.
All reactions