1
I am migrating a site I have to Laravel 5 and I came across a problem.
To email in Laravel I need to manually fill in the user and host port data in the file . env
As in my site I have an interface for the user to interact, I end up receiving this encrypted data from the database, for this fact, it becomes impossible to fill in the data MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD
manually in the file . ENV, so I ask:
It is possible to pass this to the ENV file or access a function in which I can directly pass this data and be able to fire the email?
If that data is in the database, just create a
Model
to capture and use in the sending function.– Valdeir Psr
But what is the sending function? The sending routine works.. the data is in a model, I need to take the data just this, how will I pass the data to the send non-env file? That’s what I can’t do !
– Diego Lela
If possible edit your question and ask how you are sending this data.
– Valdeir Psr
problem solved.. posted a reply..
– Diego Lela