How to send custom content email to each contact ? (willing to send product recommendations)

Your software
My Mautic version is:v4.4.5
My PHP version is:7.4.32
My Database type and version is:5.7.40

Your problem
I need to send product recommendation’s to each contact . Content will be generated by a product recommendation engine based on each user browsing history .
Could someone tell me how to create email using API ? Is there any example available?

Thank you,
Daniel

Hi,
You can send email via API:
https://developer.mautic.org/#send-email-to-contact

Joey

2 Likes

You can create email using API via this API:

https://developer.mautic.org/?&_ga=2.15113151.821070042.1672995917-409162151.1672663958#"emails-in-time"-widget

And send that email to particular contact via this:

https://developer.mautic.org/?&_ga=2.78575517.821070042.1672995917-409162151.1672663958#send-email-to-contact

Thank You

1 Like

Thank you @asad786 and @joeyk .
I am making my firsts steps on mautic api and it seems to be a step curve.

I have found also that I can achieve what I want using

https://developer.mautic.org/#extending-emails

I am a bit concerned about the end since for me it’s not working a simple filtering for now…

Thank you !
Daniel

Hi, I would go a different route.

  1. I would get the Twig Templates Plugin, which can transform a JSON content (your recommended rpoducts) into html.
  2. Push in the JSON to each contact via API.
  3. Create an Email with the Twig Template in there.
  4. Send a out the campaign
1 Like