iwasherefirst2 / laravel-multimail Goto Github PK
View Code? Open in Web Editor NEWSend mails from multiple mail accounts with Laravel
License: MIT License
Send mails from multiple mail accounts with Laravel
License: MIT License
Hi,
Thanks for the great plugin.
Can we use replyTo option while sending email. As i need a dynamic replyTo for receiving emails if any user click on replyTo button?
Hi there,
How to load the email clients and providers from a database other than from the config file?
Thank you,
Can Attach File? and How?
is it posible to add from_name to provider?
Hi there,
will it be possible to use the method later() to queue emails for later?
If not, is there a workaround how this can be done with this package?
Thanks a lot!
I want to use multimail to send Mail Notifications.
Is there a way to do this?
Thanks.
I realized that you don't specify that we need to add 'config_class' => true, in multimail.php, I had a hard time understanding why my class wasn't loaded. Thanks!
Im using laravel 7.24 and php 7.4. im try to use this package in order to able to send email to our customer by different mail.
my multiple config is here (i dont dont want save this configuration in database)
'emails' => [
"[email protected]" => [
'username' => "[email protected]",
'pass' => "13455",
],
"[email protected]" => [
'username' => "[email protected]",
'pass' => "12345",
],
],
if i keep the default email configuration in my env file and then try to send email with multimail i get this errror:
vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php - Line:457Expected response code 250 but got code "554", with message "554 5.7.8 User [[email protected]] not authorized to send on behalf of <[email protected]>
if i remove this configuration, i get this error:
vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php - Line:457Expected response code 250 but got code "550", with message "550 5.7.1 Relaying denied
i have to say that both my email address with related configuration is currect and i test it by default mail facade of Laravel.
whats is the problem with that?
Dear iwasherefirst2
You could add a more detailed example of how to add the emails from the database. I have followed the documentation steps but I have not been able to. Please help.
I am testing the package and I would like to know if I can only pass through the provider in some way and pass the email address in the mail assembly within the same class. For example:
MultiMail::to(...) ->providerMail('mailgun') ->send(new ConfirmPayment(...));
See https://laravel.com/docs/7.x/notifications#custom-channels
This will allow for notifiables to be sent via the channel
The class should also correctly implement \Illuminate\Contracts\Mail\Mailer
currently it doesn't and the send method is incompatible
The methods of the facade should also be added as DocComments for correct typing and IDE autocompletion
Hello, I want to know Is possible to pass a variable in order to use the from_name?
Thanks
I created a provider as follows:
'provider' => [
'sparkpost' => [
'host' => 'smtp.sparkpostmail.com',
'port' => 587,
'encryption' => env('MAIL_ENCRYPTION'),
'driver' => 'smtp',
]
as well as an email for that provider:
'[email protected]' => [
'username' => '[email protected]',
'pass' => env('SPARKPOST_SECRET'),
'from_name' => 'My name',
'provider' => 'sparkpost',
]
But I get:
Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators. Authenticator LOGIN returned Swift_TransportException: Expected response code 235 but got code "535", with message "535 5.7.8 Authentication credentials invalid.
When using the default Mail facade with sparkpost all emails are sent, which lead me to think that "pass" key in the defined email is not being set up correctly.
Could you help me out to sort this?
Hi,
is this package compatible with laravel 9?
please add a sample documentation how we can add database for mail configuration.
queue-list
$message = (new OrderShipped($order))
->onQueue('list-2');
onQueue method not working
it send to default
Halo! sorry I was going to ask you about one of your repositories on github because it is super suuuuper useful but I found a little error that you had on the MultiMail.php file where when you have a different provider does not pass the correct array and therefore you cannot use it I was wondering if you could open a pull request so I can send u the changes that I did, or if I'm mistaken please tell me how to propertly configure the package it is way too good and is something that actually saved me at work so I want to help
just in case the error was on the $provider variable where at first was
[$provider = (!empty($config['provider'])) ? $config['provider'] : config('multimail.provider.default'); ]
so the $provider will only return the name of the provider and not the config array (checked with a dd function and I could only see the provider's name) and I changed it for
[ $provider = (!empty($config['provider'])) ? config('multimail.provider.'.$config['provider']) : config('multimail.provider.default');]
where it takes the name of the provider adn puts it so it can take the configuration, Sorry for the inconvenience and Good Day! you are really amazing and I just want to help
This commit say that is not longer required c3926ca
But i still receive error on log driver when pass or username are missing
Username or password for log is missing in config/multimail.php and no default specified!
Maybe i make wrong config
'emails' => [
// ...
'log' => [
'from_mail' => 'info@...',
'from_name' => "... CMS",
'provider' => 'log'
],
// ...
'provider' => [
// ...
'log' => [
'driver' => 'log',
],
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.