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=’ . $attachment->name)); One thing I noticed though is that if I generate the link in the email being sent, people can also only download it if they are authenticated. So, I am thinking
Tag: laravel-mail
How to pass variable to markdown? laravel mail
I am using MailMessage to send a mail message to mailtrap, and I pass a variable email. My problem it doesn’t recognize the variable that I pass in the markdown. It returns an error below Facade…
Laravel email shows images fine in Mailtrap but not visible in Gmail
I am using a simple Laravel Mailable below and have the header image displayed at the top of the email – this displays fine when going through Mailtrap.io but when the same email is sent to my Gmail …
Laravel mail will not receive by gmail users
When I send email by laravel non-gmail accounts will receive emails but Gmail accounts will not, does anyone here faced such problem before? any idea what causes that? As my emails are receiving with …
How to pass variables into Blade using Laravel’s Mail functions?
I have this class that takes care of emails. the $massage parameter is called from the a this class, Now i want to display the message the message in the emails.notification.blade and i tried this way this is the exception that I got. anyone with a better suggestion? Answer In your controller, the variables are passed as an associative array