Questions tagged [laravel-mail]

Laravel provides a clean, simple API over the popular SwiftMailer library with drivers for SMTP, Mailgun, SparkPost, Amazon SES, and sendmail, allowing you to quickly get started sending mail through a local or cloud-based service of your choice.

Laravel provides drivers for SMTP, Mailgun, Mandrill, Amazon SES, PHP's mail function, and sendmail, allowing you to quickly get started sending mail through a local or cloud based service of your choice. Read more in documentation

189 questions
3
votes
3 answers

How to detect Mail:failures with Laravel 5.2

I am sending users an email based on form data. After looking at the docs for Mail, I figured out how to send an email. However, let's say the user made a typo in their input, how can I display to the user that their email bounced? Here is my code…
Markus Proctor
  • 395
  • 1
  • 6
  • 25
2
votes
1 answer

Sending laravel mail containing contents related to the recipient

How can I send the mail which contains the product details related to a specific company please refer to the code below for further elaboration: Here is my Controller.php code: foreach ($order->products as $product){ foreach…
o.oedits
  • 51
  • 6
2
votes
1 answer

Attach a file in an email

I want to send a file as an attachement with the email sent from my laravel application. this is how I tried to attach the file $path = Storage::url($this->newsletter["file"]); Mail::send(new NewsLetterEmail($this->newsletter), [], function…
Amir
  • 305
  • 1
  • 4
  • 16
2
votes
1 answer

How to improve email robustness? [mailgun, laravel]

I planned to improve email robustness using below way. I am using laravel and mailgun. If any bounces email is in the mailgun then i want to send that to someone related to the email(not to that previous receiver and it related with previous sender…
Senthur
  • 1,200
  • 1
  • 12
  • 23
2
votes
1 answer

Sending an email using a Shared hosting

I am using Laravel 7 and I want to send an email using shared hosting default mail service. This is my .env file email…
Amir
  • 305
  • 1
  • 4
  • 16
2
votes
2 answers

ErrorException thrown with message "mail() has been disabled for security reasons

I am trying to setup a laravel website and i have been able to get a few things to work but i then experienced this error. mail() has been disabled for security reasons I have tried contacting my hosting providers to assist in activating that…
2
votes
2 answers

How to notify the admin if the items(Multiple items) are going to expire in days later-Laravel

There are many items in the Items table and there is an expired date column in the items table. I just want to get a push notification every day before each items going expire one date before (Expire dates are different to each other and can have…
Helaka
  • 37
  • 6
2
votes
1 answer

Is there a way to get the body of a Laravel Mail object to store in a variable?

I'm using the Laravel Mail API to generate mailables and send them out. Everything is working fine with that. However, I also want to log the email bodies in the DB. In order to do that though, I need to first get the bodies of the emails I'm…
HartleySan
  • 6,152
  • 11
  • 46
  • 89
2
votes
1 answer

Laravel 5.7 not sending emails and not showing any error

I have to run mail function on laravel with google smtp.gmail.com or default mail() DRIVER only cant use other methods as client requirement but both not working. I tried everything that I can I tried smtp.gmail.com and default mail() DRIVER both…
2
votes
1 answer

PHP Laravel sending mail returns validation error and empty fields

I'm building a laravel-app and when I try to send a mail I get a validation error which I cannot localize. My form looks like this:
ST80
  • 2,679
  • 9
  • 34
  • 75
2
votes
1 answer

How to Send an Email Verification for a Created User?

I'm trying to use Laravel 5.7's new email verification feature. Let's say I'm logged in as Admin inside the admin panel and I want to: Create a random user via admin panel. Send an email verification to that created user's email. How can I…
rook99
  • 742
  • 5
  • 24
2
votes
2 answers

Laravel - How add break line in mail salutation?

I do not want to create a new markdown file, only to include a line break in salutation "without a paragraph". I tested everything: ->salutation("Atenciosamente,\n\n{$app}") ->salutation("{!! 'Atenciosamente,
'…
Magno Alberto
  • 527
  • 8
  • 22
2
votes
1 answer

I am getting this error while implementing Mail in Laravel 5.5---->Missing argument 1 for Illuminate\Support\Manager::createDriver()

Error - Missing argument 1 for Illuminate\Support\Manager::createDriver() My env file- MAIL_DRIVER=smtp MAIL_HOST=smtp.****.com MAIL_PORT=587 MAIL_USERNAME=info@*****.com MAIL_PASSWORD=****** MAIL_ENCRYPTION=tls All the keys in mail.php of config…
2
votes
1 answer

Not delivering to previously bounced address - Mailgun

I'm setting up my Laravel website, and now comes the part where I configure Mailgun to send and receive emails. I followed different guides to do that, yet I don't feel I'm doing it right. I'm now stuck with this error: Failed:…
Ibrahim Hasan
  • 33
  • 1
  • 7
1
vote
0 answers

Sending email from 2 different mail classes and laravel throws error

I am sending two different emails. One from VerifyMail and other from ForgetEmail but laravel throws error that VerifyMail does not exits. It was working just fine when i had not added the ForgetMail class. This is my code where i am using…
Waleed
  • 17
  • 6
1 2
3
12 13