Question about APIEmailService.sendEmail


(Mihir Dhandha) #1

If a template is marked as draft/not ready, will it prevent API from sending email using APIEmailService.sendEmail method?


(John Borelli) #2

No if a template is not marked as ready then it won’t send an email using that template.


(Jon Smith) #3

The APIEmailService.sendEmail service as defined here: https://developer.infusionsoft.com/docs/xml-rpc/#email-send-an-email-from-a-template will send even though the template is set as not ready.

To clarify the ready and not ready status is for automation. The API is generally considered manual. If a template was to be sent as a one off email inside of Infusionsoft even if the template wasn’t set to ready it would still send because it was manually triggered to go out.

This can be tested here: https://keys.developer.infusionsoft.com/login/login?r=https%3A%2F%2Fkeys.developer.infusionsoft.com%2Fio-docs&h=f60e0d776af003c0ab212abf4190f149


(Mihir Dhandha) #4

Thanks. That’s not what I had assumed.