Category : email

Works well when I want to use Laravel’s default email verifier But when I put the same method that sends the email in a queue, the url sent to the user is wrong http://localhost/email/verify/65/36a5c019a9dc059333f38c329f3694d6ba646e36?expires=1614871373&signature=52f2f377d559a6bdd913b6fc210106b352ed1c60ff64cf1166d2b0ec562f086d The above url is incorrect instead of localhost:8000 has only the localhost value User Model public function sendEmailVerificationNotification() { sendEmailVerify::dispatch($this); } ..

Read more

I’m using the latest Laravel 8.x and recently switched to Notifications to notify a user via email. Unfortunately I’m getting an error and I do not know how to solve it. Before switching to Notifications, everything worked fine: Connection could not be established with host smtp.my-domain.com :stream_socket_client(): Peer certificate CN=’smtprelaypool.example.com’ did not match expected CN=’smtp.my-domain.com’ ..

Read more

When I am trying to set up SMTP mail account which my client gave there is an error where i could resolve , Can someone help MAIL_DRIVER=smtp MAIL_HOST=smtp.office365.com MAIL_PORT=587 MAIL_USERNAME=xxxxxx MAIL_PASSWORD=xxxx MAIL_ENCRYPTION=tls used STARTTLS This is the error which i get Swift_TransportException Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators. ..

Read more

I’m trying to send emails from Laravel app that I have in production, but it’s not working. It gives me this error: Connection could not be established with host smtp.googlemail.com :stream_socket_client(): unable to connect to ssl://smtp.googlemail.com:465 (Connection timed out) But when I try to send email from localhost it works correctly. my config mail MAIL_DRIVER=smtp ..

Read more

I’m developing a web application with laravel and i send emails with sengrid using sociallite driver, everything works as i expect in localhost, but i deployed my application on a shared host and when i try to send an email i get the following error: stream_socket_enable_crypto(): Peer certificate CN=`hv22svg069.neubox.net’ did not match expected CN=`smtp.sendgrid.net’ I’ve ..

Read more

I am making a dynamic sender, I put this code in a Service class(AppServiceProvider.php) or in a function that returns the Mailer object ready to be used. AppServiceProvider.php public function register() { $this->app->bind(‘user.id’, function ($app, $parameters) { $smtp_host = array_get($parameters, ‘smtp_host’); $smtp_port = array_get($parameters, ‘smtp_port’); $smtp_username = array_get($parameters, ‘smtp_username’); $smtp_password = array_get($parameters, ‘smtp_password’); $smtp_encryption = ..

Read more

Laravel is trying to include this file EguliasEmailValidatorEmailValidator, but this file doesn’t exists EguliasEmailValidatorEmailValidator. But exists egulias/email-validator/src/EmailValidator.php. How can i solve this Problem? composer.json "require": { "php": ">=7.1.3", "laravel/framework": "5.8.*", ……………………. "egulias/email-validator": "~2.0", "swiftmailer/swiftmailer": "^6.0", ……………………. }, Error local.ERROR: Class EguliasEmailValidatorEmailValidator does not exist {"userId":68,"exception":"[object] (ReflectionException(code: -1): Class EguliasEmailValidatorEmailValidator does not exist at /var/www/projectTest/vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyContainer.php:325) [stacktrace] ..

Read more

i want to send an email welcoming users when they register. so in the registration controller after validation, i have my code to send email. everything set properly still couldnt send email. here is my code. protected function create(array $data): User { // $email = request()->get(’email’); Mail::to($email)->send(new NewUserWelcomeMail()); return User::create([ ‘firstname’ => $data[‘firstname’], ‘lastname’ => ..

Read more

I got below error while working on server for Mail notification, were same configuration was working fine on localhost setup. Expected response code 250 but got code "530", with message "530-5.7.0 Authentication Required. Learn more at 530 5.7.0 https://support.google.com/mail/?p=WantAuthError 190sm4871925pgh.81 – gsmtp " Please help me on this if any one facing same issue earlier. ..

Read more

I’m currently trying to find the reason causing my Laravel app not to send emails when I do it from a job (but when I do it from controller, everything works perfectly). I have a job which ends with an a notification: $userToSend->notify(new InfoEmail()); This line of code is being executed – I use jdavidbakr/mail-tracker ..

Read more

I try to use mailgun for my emails on my Laravel app (Laravel 8.27.0). On my localhost on my wampserver I get this error when I try to send an email from my Laravel app: SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException The GET method is not supported for this route. Supported methods: POST. http://127.0.0.1:8000/password/email Here is my .env file on ..

Read more

I try to use mailgun for my emails on my Laravel app (Laravel 8.27.0). On my localhost on my wampserver I get this error when I try to send an email from my Laravel app: SymfonyComponentHttpKernelExceptionMethodNotAllowedHttpException The GET method is not supported for this route. Supported methods: POST. http://127.0.0.1:8000/password/email Here is my .env file on ..

Read more

I’m trying to pass a variable with the to email address into the Mail:send function and I’m getting the following error because it cannot read the variable within the function. Undefined variable: to $data = array( "name"=>"Foo Bar" ); $to = "[email protected]"; Mail::send(‘mail’, $data, function ($message) { $message->from(‘[email protected]’, ‘Name’); $message->subject("Subject Name"); $message->to($to); }); How could ..

Read more

during the conception of my web site using laravel 7 I found some troubles when I wanted to customize my laravel customize my Laravel email verification message. first, I went to this file "C:xampphtdocsclinique_juridiquevendorlaravelframeworksrcIlluminateAuthNotificationsVerifyEmail.php",then i translate the sentences that are there . Here I met two issues, the first one some sentences are not in ..

Read more

I created a bounced mail tracking system in Laravel. It works like this: Every time an outgoing email is bounced, mailer-daemon from google notifies the source (i.e. replies) about the bounced email. I tracked my inbox using Weblex-imap and hence was able to track all the bounced emails. The problem is, now what if I ..

Read more

I use this code to send invoice Mail::send($email_template, $view_vars, static function ($m) use ($customer, $company, $email_subject, $users, $invoice, $invoice_name) { $m->from($company->send_email, $company->name); $m->to($users, $customer->getFullName())->subject($email_subject); $m->attachData($invoice, $invoice_name); }); Problem that it need some time to send email with atache. Decision – to use Queue and change Mail::send() to Mail::queue() But I use iron.io as as QUEUE ..

Read more