i tried with below code but its not working for me.
I am send it to gmail.
is there anything which i have missed out?
$subject = "Happy Work Anniversary !" ; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $link = public_path() . "/images/Work_Anniversary.png" ; $comment = View::make('EmailNotifications/BirthdayEmail'); mail("firstname.lastname@example.org", $subject, $comment, $headers);
and in view i have used
<html> <body> Hello <?php echo $employee_name; ?>,<br> <img src='<?php echo $link?>'> <br> path used is <? echo $link ?> <br><br> <br><br>Thanks,<br> GS Lab <br><br> </body> </html>
in gmail, it shows broken link.