laravel-mail

Mail config for Laravel over RoundCube

梦想的初衷 提交于 2021-02-11 15:13:21
问题 I am using Laravel to send out some emails from RoundCube. The trouble is that I keep getting the same error Failed to authenticate on SMTP server with username "user@email.com" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 250 but got code "530", with message "530 5.7.1 Client was not authenticated ". Authenticator PLAIN returned Expected response code 250 but got code "530", with message "530 5.7.1 Client was not authenticated. I have looked around and

Mail config for Laravel over RoundCube

好久不见. 提交于 2021-02-11 15:12:49
问题 I am using Laravel to send out some emails from RoundCube. The trouble is that I keep getting the same error Failed to authenticate on SMTP server with username "user@email.com" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 250 but got code "530", with message "530 5.7.1 Client was not authenticated ". Authenticator PLAIN returned Expected response code 250 but got code "530", with message "530 5.7.1 Client was not authenticated. I have looked around and

Sending an email using a Shared hosting

拜拜、爱过 提交于 2021-01-27 17:39:47
问题 I am using Laravel 7 and I want to send an email using shared hosting default mail service. This is my .env file email configration MAIL_DRIVER=smtp MAIL_HOST=hostname MAIL_PORT=465 MAIL_USERNAME=support@sitename.com MAIL_PASSWORD=password MAIL_ENCRYPTION=ssl And this is my default mail in config/mail.php 'default' => env('MAIL_MAILER', 'smtp'), 'mailers' => [ 'smtp' => [ 'transport' => 'smtp', 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 'port' => env('MAIL_PORT', 587), 'encryption' =>

Why mail laravel not working on the staging server?

泪湿孤枕 提交于 2020-01-16 18:04:07
问题 I try on the my localhost, it works But if I try on the staging server, it does not works My controller like this : <?php use Illuminate\Support\Facades\Mail; use App\Mail\OrderReceivedMail; ... class PurchaseController { ... public function test() { $order = $this->order_repository->find(416); $user = $this->user_repository->find(1); Mail::to($user)->send(new OrderReceivedMail($order, $order->store)); } } My mail like this : <?php namespace App\Mail; use Illuminate\Bus\Queueable; use

Laravel 5.3 - Attach Multiple Files To Mailables

六眼飞鱼酱① 提交于 2020-01-10 18:17:14
问题 How does one go about attaching multiple files to laravel 5.3 mailable? I can attach a single file easily enough using ->attach($form->filePath) on my mailable build method. However, soon as I change the form field to array I get the following error: basename() expects parameter 1 to be string, array given I've searched the docs and also various search terms here on stack to no avail. Any help would be greatly appreciated. Build Method: public function build() { return $this->subject(

set mail driver dynamically from database for different email in notification

孤人 提交于 2020-01-06 06:56:14
问题 I want to set the following setting dynamically before I notify the user. MAIL_DRIVER= MAIL_HOST= MAIL_PORT= MAIL_USERNAME= MAIL_PASSWORD= MAIL_SENDER_EMAIL= MAIL_SENDER_NAME= for each customer they have the option to set this value from the frontend now I need to send email as per there setting is there any way in laravel I can do this. I am using notification to notify each customer so before I notify I want to set this option dynamically from DB. Thanks in advance. 回答1: these env variables

Laravel's Mail notification won't send, but Laravel's Mail::Raw will

▼魔方 西西 提交于 2020-01-05 04:56:11
问题 I have configured my SMTP server correctly in Laravel's env file, and can successfully send an email using Mail::raw e.g. Mail::raw("This is a test message", function ($message) { $message->from(env("MAIL_ORDER_ADDRESS"), 'Orders'); $message->to('user@example.com'); $message->subject('Test Message'); }); However, when I use a laravel 5.3 mail notification, no email is received (nor is an error generated). I have tested the same notification code locally using mail trap and the notifications