I currently am using:
mail($to, $subject, $body, $headers);
To send emails to my members. The content of the email is been stored within the $body variable which makes it really difficult for template usage and basic attractiveness of the email.
My question is, is there an alternative or a method to implement a template into these sort of emails instead of the bog standard logo and text which looks horrendous!
Many thanks,
The method of sending the mail has nothing to do with its appearance. You can take any template engine you like and put it’s output into $body. You should, however, embed it in a multipart message that contains a text/plain and a text/html part.