Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Email templating in PHP
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Email templating in PHP

Building new app and looking for existing libraries for parsing html email templates to send email via PHP.

Example of HTML template.html:

Hello {{ user }},

Today is {{ date }}, a wonderful day to visit {{ url }}.

Now for PHP part I assume it would something like this (pseudo):

data['user'] = 'Name';
data['date'] = date();
data['url'] = 'lowendtalk.com';

SendEmail('template.html', $data[]);

Anyone knows library for "SendEmail" parser?

Comments

Sign In or Register to comment.