Home How to Send email with html templates in laravel 5?
Reply: 0

How to Send email with html templates in laravel 5?

user3864
1#
user3864 Published in September 19, 2018, 9:38 am

i want to try simple email sent like in php but i get templates based email sending in Laravel 5 ??

`$to      = Session::get('email');
 $subject = 'Order confirmation';
 $headers = "MIME-Version: 1.0\r\n";
 $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
 $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
 $headers .= "From: Test <rajdipvekriya1992@gmail.com>"; 
 $message = 'test body';
 mail($to, $subject, $message, $headers);`

but i want get templates based body html pass $message like to

 $body = $this->load-
 >view('admin/email_template/test_template',$data,TRUE);
 $this->email->message($body);
 $this->email->send();
share|improve this question

4 Answers 4

active oldest votes
up vote -1 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.336701 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO