Category : email

i know this question is asked many time but i could not found answer i am using this method to sending email Mail::send(‘dynamic_email_template’,$data, function ($message) { $message->from(‘[email protected]’, ‘Contact’); $message->to(‘[email protected]’)->subject(‘Contact’); }); and getting this error No hint path defined for [mail]. the error cause is i am sending table in email using @component(‘mail::table’) in dynamic blade ..

Read more

In Laravel 7, I want to send email from my application using Office365, tried email password and app password none worked. MAIL_MAILER=smtp MAIL_HOST=smtp.office365.com MAIL_PORT=587 MAIL_USERNAME=my-email-here MAIL_PASSWORD=my-email-password-here MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=my-email-password-here MAIL_FROM_NAME="App name" In the above code MAIL_PASSWORD is my email password not app password this configuration gives me the following error Failed to authenticate on SMTP server ..

Read more

I have a domain and i created a email with the cpanel of that serve. now when i try to use it it shows me Connection could not be established with host [email protected] :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known My code -> MAIL_MAILER=smtp [email protected] MAIL_PORT=465 [email protected] MAIL_PASSWORD={mypassword} MAIL_ENCRYPTION=ssl [email protected] MAIL_FROM_NAME=”${APP_NAME}” Sourc..

Read more

i get templates that users upload in project and project store they on public/templates each template has a folder and the folder has two file. first preview.png , second template.blade.php when i show the template preview, it show as well. but when i want to send email witj this template, i get this error View ..

Read more

i am trying to send this data to email dynamic_email_template.blade.php <p>Hi, This is {{ $data[‘name’] }}</p> <p>I have some query like {{ $data[‘message’] }}.</p> <p>It would be appriciative, if you gone through this feedback.</p> but problem is that $data[‘name’] & $data[‘message’] is missing in received email in model and controller even i am receiving this ..

Read more

Hello I want to send e-mails rendered from templates that can be created / modifed by admin from a form (with placeholders).As in the example below and I want to send it to 100 users at the same time, I don’t know how to do it, can you help? Hi { { name } }, ..

Read more

I am trying to send a outlook email with my Microsoft account in laravel. But I am getting the error below: Swift_TransportException Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful [xxxxxx.xxxxx.PROD.OUTLOOK.COM] ". Authenticator ..

Read more

When deploying laravel project and putting it online on the server im facing this error when trying to send an email: "Swift_TransportException Connection could not be established with host smtp.mailtrap.io :stream_socket_client(): unable to connect to tcp://smtp.mailtrap.io:2525 (Connection refused)" I tried switching ports but that doesn’t work. Laravel current env settings: MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=ee53c823e18744 MAIL_PASSWORD=bc0aedb69d48c1 ..

Read more

I am trying to make back to back email replay system, the fast time I send many replay message serial databases, then I received an email IMAP, then auto-send 1number message, after received the email then send 2number replay, possible laravel?? please suggest to me how it works? Sourc..

Read more

I am currently trying to display an image on a email template on production but i am having issues trying to retrieve it. <a href="#"><img style="width: 200px; padding: 10px; background-color: white" src="{{$message->embed(‘http://’ .$partner->subdomain . "." . env(‘APP_DOMAIN’) . $partner->logo)}}" alt="Trustbox"></a> Mail /** * Build the message. * * @return $this */ public function build() { ..

Read more

I implemented password reset using email and it works fine in localhost, but it throws an error in real server. Here is the error: Swift_TransportException Connection could not be established with host mailhog :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known and here is .env file content: APP_URL=http://localhost LOG_CHANNEL=stack LOG_LEVEL=debug DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel ..

Read more

Laravel 7.30+ Until a few days ago I was using only one smtp server, all good… But now I have to "rotate" the SMTP server since now I have 4 new server only for SMTP, wyhy dont I use mailing queue and some other server like AWS?… well, the current server has lots of power ..

Read more