1

I amb creating a Mailing via API calls. I dynamically create the Moisaico code. But when the Email gets created, it doesn't have any HTML code, so I can not send it. How can I get the HTML code from the Mosaico code?

If I go through the CiviCRM web GUI, I just need to click on "Edit" on the Mosaico Design created for that Email, and then jsut click "Save" or "Close", and the HTML gets created by Mosaico and then I can send the email.

How can I make this process via API?

Thanks.

2
  • anynone has any idea about this issue? I tried to send the HTML code made by myself, but it's too long and I receive a "401 URI Too long" error...
    – Rucc
    May 3, 2022 at 13:52
  • Can you add some details on what api call you tried ? Is it in REST, php or javascript ?
    – samuelsov
    May 3, 2022 at 15:30

1 Answer 1

0

If I understand correctly - this should serve your needs

Mosaico Message Templates For each "Mosaico Template", automatically create "Message Templates" for use in scheduled reminders, personal emails, etc.

https://github.com/civicrm/org.civicrm.mosaicomsgtpl

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.