DEV Community

Discussion on: How to generate PDF and send it on mail in Laravel 5.8

Collapse
 
jonaymedina7 profile image
Jonay Medina

Hi, thanks for the tutorial. You could help me, I want my data like: mail, name, be loaded dynamically. example:

MAIL_DRIVER=smtp
MAIL_HOST=mail.domain.com
MAIL_PORT=587
MAIL_USERNAME=test@test.domain.com
MAIL_PASSWORD=the one you chose to create
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=\Auth::user()->email;
MAIL_FROM_NAME=\Auth::user()->name;

could you help me in this

Collapse
 
sandeepbalachandran profile image
Sandeep Balachandran

Hey there, If you are seeing this, you can dynamically assign the sender address and name from controller itself if it is a feasible solution for your requirement.