Just check your mail credentials and ensure that they are correct.
Laravel 11 email error
I am using laravel mailable but for some reason the email is not sending ,also " Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. " this error message is coming. I don't think there is some issue in the code as i tried every possible combination to make it work.
Mail::to($data->email)->send(new WelcomeMail($data));
MAIL_DRIVER = smtp MAIL_HOST = smtp.gmail.com MAIL_PORT = 587 MAIL_USERNAME = MAIL_PASSWORD = MAIL_ENCRYPTION = MAIL_FROM_ADDRESS = MAIL_FROM_NAME =
can anyone help me with this. I initially though something is wrong with my project, but i also tried sending mail like
Mail::raw('Hi', function ($message) use ($mailFromAddress, $mailFromName) { $message->to('[email protected]') // Recipient's email address ->subject('Test Email') // Email subject ->from($mailFromAddress, $mailFromName); // Sender's email address and name });
in the new project but still it is not going. I have another laravel project where the version is 10 but there the smtp is working
Please or to participate in this conversation.