bdaler / usermailer
Library allowing Users to send email with their own SMTP settings in Laravel
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- swiftmailer/swiftmailer: ^6.0
This package is auto-updated.
Last update: 2024-04-22 22:32:04 UTC
README
Library allowing Users to send email with their own SMTP settings in Laravel
-
install via composer:
composer require bdaler/usermailer
-
simple usage:
$credentials = new UserMailCredentials();
$credentials
->setMailerName('smtp')
->setFromEmail('example@yandex.ru')
->setFromName('example')
->setSmtpHost('smtp.yandex.ru')
->setSmtpPort('587')
->setSmtpUserName('example@yandex.ru')
->setSmtpPassword('emailPassword')
->setSmtpEncryption('tls');
$mailer = (new UserMailer())->getMailer($credentials);
$mailer->to('example@outlook.com')->send(new SomeMailable());