emails with Debug View??? |
Hi all.
So I'm trying to send an email, using sendmail. The email and subject get sent all right - but the body is like: <!-- DEBUG-VIEW START 1 APPPATH/Config/../Views/emails/for_customer.php --> <html lang="ru"> <body> <div style="margin: 10px 0;padding: 0;background-color: #52a620"> <h1 style="text-align: center;"> <a style="text-decoration: none; color: #FFF; font-weight: lighter;" and everything is just in text! No html, no styling and <!-- DEBUG-VIEW START 1 APPPATH/Config/../Views/emails/for_customer.php --> in the beginning! How to make it normal? This is my controller: PHP Code: protected function sendNotice(array $details)
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
Ok, I figured it out.
In app/Config/Email.php I set $mailtype to 'html' and In app/Config/Toolbar.php I commented out \CodeIgniter\Debug\Toolbar\Collectors\Views::class In production the toolbar is not used, so the second action is not needed.
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
|
Welcome Guest, Not a member yet? Register Sign In |