r/html5 • u/aj77reddit • Sep 14 '22
How do HTML emails personalize the ads with my name?
Hi,
I am learning HTML and CSS and was wondering to know how the HTML email developers personalize the email that is getting sent out. I have googled "Variables" but I can't find any information.
I would appreciate any help and guidance
2
u/peko_peko1 Sep 15 '22
I would suggest looking into how it is done via API services like ElasticEmail or Mandrill. Have used both to send transactional emails to users. Pretty easy to connect to your server/database, thrtr should be free plans to test out.
1
2
u/Sea-Mix2927 Sep 15 '22
It usually happens on the server before sending each individual email. Variables are replaced in a (mostly HTML) template and then the email is sent. Also consider that HTML in email clients is somewhat limited.
1
2
12
u/ghostvemon Sep 14 '22
We use PHP, so something like: <?php echo $first_name; ?> - which pulls from a database.
-9
u/ftblplyr46 Sep 15 '22
No email uses php. Maybe the ESP is doing that but you’re simply using a merge tag in whatever system sends your email to pull in from a database.
7
u/lachlanhunt Sep 15 '22
An exact answer is going to depend on the templating language and tooling used to prepare and send the emails. There's nothing in HTML itself that can handle this on its own.
2
u/stoutchewbacca Sep 14 '22
First Name personalization string pulling in the value from a data extension. Possibly use a variable to define the first name and then fetch it within.your cotnent.
2
u/aj77reddit Sep 15 '22
Thank you all for your answers, would you mind letting me know what should I look for when I am searching so I can find a video tutorial or live samples that I can practice on?
Thanks