How to send an email with content from a View Ci4 |
When I use Ci3, I can use the script for send email with content from view like this :
Code: $msg = $this->load->view('register/V_reset_password', $data, true); But in Ci4 that script cannot be used. I have to try like this and getting error : Code: $message = view('register/V_reset_password', $data, true); Thank you..
The code seems no problem.
What error message do you get?
Read this documentation, if the issue still is not resolved, then send in error message
https://codeigniter4.github.io/CodeIgnit...email.html (09-27-2021, 03:57 AM)davis.lasis Wrote: Read this documentation, if the issue still is not resolved, then send in error message I have read it. But I cannot find how to send an email with content from a view file. PHP Code: $body = view('yourView', $data); What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |