I can't install breez and npm for this situation. What should I do to solve this problem? When I'm going to create a laravel project show this and breez install time too.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead
Asked Answered
after long time i got the solution. That is :- This is just a package. You can avoid this things.. this is Nothing. Thanks
$ composer require “swiftmailer/swiftmailer:^6.0” Here is the simplest way to send emails with Swift Mailer:
require_once ‘/path/to/vendor/autoload.php’;
// Create the Transport
$transport = (new Swift_SmtpTransport(‘smtp.example.org’, 25))
->setUsername(‘your username’)
->setPassword(‘your password’)
;
// Create the Mailer using your created Transport $mailer = new Swift_Mailer($transport);
// Create a message
$message = (new Swift_Message(‘Wonderful Subject’))
->setFrom([‘[email protected]’ => ‘John Doe’])
->setTo([‘[email protected]’, ‘[email protected]’ => ‘A name’])
->setBody(‘Here is the message itself’)
;
// Send the message
$result = $mailer->send($message);
You can also use Sendmail as a transport:
// Sendmail
$transport = new Swift_SendmailTransport(‘/usr/sbin/sendmail -bs’);
The question is tagged Laravel. Have you tested your answer with Laravel? There are many tools built into Laravel that will not support your answer. This also will not work with existing Laravel 8 and prior setups. –
Akmolinsk
This answer is most irrelevant answer I have seen today –
Word
© 2022 - 2024 — McMap. All rights reserved.
composer why swiftmailer/swiftmailer laravel/framework v8.83.23 requires swiftmailer/swiftmailer (^6.3)
– Propellant