252 questions
0
votes
1
answer
92
views
Laravel 9 Bug? Changing config/mail.markdown.theme does not work. Still loads default from vendor published folder
So editing the config/mail.php during launch time to let each user have their own mail template:
Config::set('mail.markdown',[
[
'theme' => 'domain.com',
'paths' =&...
0
votes
0
answers
16
views
How to send Mail with Dynamic Sender in Laravel 10 [duplicate]
I am stuck here I want to send mail in Laravel 10 Mail Class with dynamic email address.I am using Hostinger for hosting & mail both.
I have searched alot but the available solutions they are ...
2
votes
2
answers
189
views
Laravel mPDF mail attachment error "Illuminate\Mail\Attachment::fromData(): Argument #1 ($data) must be of type Closure, string given"
Hi I'm trying make a function to send an email and attach a .pdf file by using the dependency laravel mPDF
My mail object where the error happends is in the attachments() function:
class ...
0
votes
0
answers
71
views
Laravel mailable prettier formatting
I recently installed prettier in my laravel project and everytime I run the fix npm run lint:fix which is prettier --write ./resources/views it reformats the mail in a way that I am it breaks the ...
-4
votes
1
answer
46
views
How to fix commenting out my code, I can't use "//" in my code and it is commenting out my code automatically
this is my code and i can't use "//" in url part because it comment out my code
<x-mail::message>
# Introduction
The body of your message.
<x-mail::button :url="https://youtu....
1
vote
2
answers
309
views
Laravel redirect occasionally causing error 500 after email being sent
I have a weird issue with laravel redirect() after mailer function being executed in my controller for contact-us functionality. It sometimes returns server error 500 and the log says
"[2024-02-...
1
vote
1
answer
703
views
How to implement mail using Laravel mail service in Laravel 9 or 10?
I want to implement Laravel mail service to send mail to user and attach file with that like dompdf package granted pdf.
I tried to implement a mail service to send mail in the controller and did it ...
0
votes
1
answer
1k
views
Unable to send email to gmail accounts in Laravel
I am trying to integrate email([email protected]) into my Laravel application. I am not using Mailtrap or Google's SMTP. My hosting provider has an email server. I am planning to use that email ...
0
votes
0
answers
230
views
Laravel 10 mails are blocked, Outlook/Thunderbird mails not
I am having problems sending emails via Laravel 10. The error message from the email server is clearly understandable. My IP address from the provider, which is shared with other customers, was ...
2
votes
0
answers
1k
views
Symfony Mailer: Expected response code "250" but got empty code
We started getting error Expected response code "250" but got empty code. when sending emails via Symfony Mailer on Laravel 10 and Mailchimp.
There are lots of similar questions and all of ...
0
votes
2
answers
222
views
How to Implement Email Forword functionality in Laravel 9
I have store the Gmail inbox in my database and listed on admin panel, now I want to Forword the received mail to another, how to do that in Laravel.
I have use laminas/laminas-mail package to store, ...
0
votes
0
answers
137
views
Laravel 8 Mail markdown keep using mail.default
We have been using the following code for over a year.
$data = [
'date' => '11/11/11'
]
$notification = new Notification($data, "Hello", 'mail.account.report');
Redis::throttle('...
0
votes
0
answers
453
views
Embed Image in HTML String Email Laravel
Hello I wanted to embed an Image in a Mail in Laravel.
Sure when using a link to the public resource for my image, it does work but I dont know if it is better than embedding the Image directly into ...
0
votes
0
answers
263
views
Laravel mail's attachment missing from production but works in localhost
I have created mail job with attachment which works very fine from localhost (window) but when I run same code in server (ubuntu 18.4) I am receiving email but without attachment. Couldn't figure out ...
0
votes
1
answer
466
views
Change MAIL_FROM_NAME value from laravel controller
I want to sent 2 mails, but from name is different for one, while for second its the default in env file
I tried this:
Mail::send(
'register.mail',
['record' => $...
0
votes
1
answer
697
views
Getting Error "Trying to access array offset on value of type null" in Laravel while sending Email
I have an online appointment form from where user can take appointment. An email will be generated after taking appointment. But getting below error while sending email.
Trying to access array offset ...
2
votes
2
answers
3k
views
Change Laravel mail configuration during runtime
I need to change Laravel Mail Configuration during the runtime. This is because the configuration needs to be changed several times during runtime, not just once on app initialization.
foreach ($...
2
votes
3
answers
2k
views
Sending emails without mailables in Laravel works except for the cc/bcc recipients
I need to send some test emails from Laravel and want to do it, without Mail classes, etc. I usually use the Mail::send() function for this and it works fine. However, I've just realized that cc/bcc ...
2
votes
1
answer
450
views
Laravel translate markdown mail template
'How can I translate the markdown email template ?
I tried to use __() inside the template but it doesnt work.
My template :
<x-mail::message>
# Password
__{{'Your password is'}} : {{ $password ...
0
votes
0
answers
206
views
How to configure mail.php and service.php in laravel 9 project when i use Sendinblue smtp service
In development it works perfectly, the emails reach the recipient, but when I display the project in cpanel I get a 500 error when my client presses the send button.
Currently my configuration is like ...
1
vote
1
answer
724
views
How to attach multiple files to Laravel 8 Mail from laravel Excel 3.1
I am trying to send 2 files attached to my mail but it is only attaching the first file and not the second file at the mail...
What I have been trying:
Mail Controller:
<?php
namespace App\Mail;
...
0
votes
1
answer
838
views
Mail Error:- Failed to authenticate on SMTP server with username "[email protected]" using 3 possible authenticators
Google mail is running perfectly for sending mail but domain-mail (support.myDomain.io) returns following errors
Swift_TransportException Failed to authenticate on SMTP server with username "...
0
votes
1
answer
1k
views
Laravel Mail Error - Failed to authenticate on SMTP server with username "[email protected]" using 3 possible authenticators
Google mail is running perfectly for sending mail but domain-mail (support.myDomain.com) returns following errors
Swift_TransportException - Failed to authenticate on SMTP server with username "...
0
votes
2
answers
231
views
Laravel not redirects page after sending mail
I am sending a mail and after mail is send I want to redirect user to a specific url
$mail = Mail::send('test.mail', ['a' => 'a'], function (Message $message) {
$message->to(['hod@vu....
0
votes
0
answers
120
views
The log driver for mail is adding some extra characters in the log file
I update the Laravel version to 9. Everything is working fine after the upgrade.
I am using the Log driver for mail as I am developing on my local system but the mail content inserts in my laravel.log ...
0
votes
1
answer
132
views
TypeError at Exporting CSV and Passing Data to Mail View - Laravel 9
I have two problems with Queue Jobs in Laravel 9.
At one job, I'm trying to export some relational data to a .CSV file and want to notify users when exporting is finished. For this task I'm using Jobs....
0
votes
1
answer
22
views
Laravel Mail function error - Trying to get property 'caseno' of non-object
I have create the below code for email notification generate. I have added the subject name to 'bookingno' number, it's showing the below error message. please support me.
ErrorException
Trying to get ...
1
vote
1
answer
748
views
How to dynamically set username and password(from database) in laravel (.env file) for sending mail using smtp
How to dynamically set username and password(from database) in laravel (.env file) for sending mail using smtp
MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
MAIL_USERNAME=
MAIL_PASSWORD=...
1
vote
0
answers
112
views
laravel sengrid random authentication failure when sending emails with attachment
We are able to send out emails but a problem seems to occur when the email has an attachment.
we're getting this authentication error which is weird because we are able to send out no attachment ...
0
votes
0
answers
460
views
I want to send an email in laravel using the email used by the client account
I'm new to Laravel and I'm doing this for a thesis project. What I was trying to do is I want to send an email to the client that sent a payment after the admin has confirmed the payment. what I tried ...
-1
votes
1
answer
274
views
Laravel Mail Subject - Undefined method 'subject'.intelephense(1013)
Using Laravel Mail System with the following function, there isn't a subject method defined.
$mail_response = Mail::to($user_mail)
//->subject($mail_subject) //Undefined method 'subject'....
0
votes
1
answer
1k
views
How to add PDF attachment in queue mails In Laravel?
I was able to send an email but when I put the attachData() in the UserMail there was an error. I think because of the parameter $this->pdf that should be declared in UserEmailJob, and I don't know ...
0
votes
1
answer
532
views
How to add queue in sending mails in Laravel?
I already edited my .env to QUEUE_CONNECTION=database and tried to replace from send to queue. I also tried to add implements ShouldQueue to my CertificatEmail but not working. I don't know what's ...
0
votes
1
answer
509
views
How to pass variable from controller to blade in loadView of dynamic DOMPDF in sending mails?
Instead of 'john' I want to replace it using the selected user's name from database. Is there a way to this on Mail?
Controller
public function sendEmail(Request $request)
{
$users = ...
0
votes
1
answer
305
views
How to trigger password reset without a notification in Laravel Breeze?
Using Laravel 9 with Breeze I want when a user with a specific role has been created, he should receive a custom welcome mail with a link to a view, where he needs to set a password
How can I just ...
0
votes
2
answers
303
views
I am getting error about email in Laravel project
I have a problem to solve. However, this problem came to me from sentry.io. So I didn't see the problem directly.
The problem is as follows: Address in mailbox given [] does not comply with RFC 2822, ...
0
votes
1
answer
1k
views
"Undefined variable $token",
PasswordResetController
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Response;
use App\Http\Requests\PasswordResetRequest;
use Illuminate\Support\Str;
use App\Models\PasswordReset;
...
0
votes
1
answer
689
views
submit form and redirect to another page after sending email with laravel
i can send the email without any problem, but form still like not submitted (refresh) or redirect to another page>>>>
this is my function to send an email:
function sendEmail(Request $...
0
votes
1
answer
1k
views
Laravel Mail attach method - Attached file not opening after downloading
I have used the Laravel Mail attach method to specify file attachment for the mail being sent. The file attached successfully but cannot be viewed.
->attach(route('download_attachment', 'file=' . $...
-1
votes
4
answers
1k
views
Email verification does not seem to be sending anymore
I want to send email verification when a user signs up with a new Email Address. So at the Register Controller I added this:
public function register(Request $request)
{
if(Session::has('email')...
-1
votes
1
answer
154
views
Laravel when sending mail giving unparenthesized expressions error
I am trying to send mail but it is giving this error:
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
following ...
-1
votes
2
answers
582
views
Attempt to read property "view" on null, laravel reset email notificaiton
When I try to send reset password notification, this error occurs
Attempt to read property "view" on null
this is the code line on which this error occurs
$this->notify(new ...
0
votes
1
answer
892
views
Laravel Email Set Multiple Template (eg. Change Password Template, Details Order Template, New User Notification Template)
Currently, I know Laravel has shipped mail templates. but only one template. How to create other templates and tell which template need to use before sending an email.
public function ...
3
votes
2
answers
4k
views
Dynamic header and footer in Laravel markdown mail
Following the documentation, I have created my own mail template using markdown mailables: https://laravel.com/docs/9.x/mail#generating-markdown-mailables
The point is that I need to customize ...
1
vote
0
answers
307
views
How to get Mailgun response with Laravel Mail
How can I get the response from Mailgun using Laravel mail.
Here is my code.
// In User Model.
$mail = \Mail::send([], [], function ($message) use ($parsed_template) {
$message
-&...
0
votes
2
answers
230
views
Laravel 7 | Some recipients receive empty emails
I have an laravel 7 application and use smtp with google services to send my emails.
However some clients receive the emails with attachments, but no body. The content of the email is completely blank....
2
votes
1
answer
11k
views
Mailer [SMTP] is not defined. when I am sending email in laravel 7
I face a problem it the first I see this problem in Laravel 7.
InvalidArgumentException: Mailer [SMTP] is not defined. in file /home1/clinicph/clinic/vendor/laravel/framework/src/Illuminate/Mail/...
0
votes
1
answer
551
views
Laravel dynamic email not sending by Mailable Class
In my case, In the Mailable Class I store the email in the variable hardcode form LIKE
$email = '[email protected]';
then, its work fine. but when we pass the email dynamically from the Controller LIKE
...
0
votes
1
answer
892
views
How can I log notifications laravel 8 after fired?
I create a panel with laravel 8 and create some emails jobs that must send emails to specific users on specific dates it works fine. I created the database with 2 columns user_id (id of the user that ...
0
votes
0
answers
315
views
Laravel Mail::queue and supervisor => Mails Delayed for the first time in a day
I have implemented laravel queue with supervisor on prod server. The problem i am facing is when i send mail for the first time in a day, the mail get delayed but the job is processed but after that ...