Hi, due to a customer request, I am wondering if it is possible to create and send emails directly by the rest api.
The request would be to trigger email creation/sending in suitecrm through an external application. The Data/ Body for the email would be supplied by the external application but SuiteCRM should do the sending/. So I would like to know if it is possible at all to send an email from suitecrm by api call.
Did anyone allready encounter such a requirement?
Maybe there is a workaround if its not possible to send the email by rest api, like creating the email by api, and have a workflow handle the email sending later on. I couldn’t figure out if its possible to configure a workflow to acctually send the email-record itself after creation/update tho.
Does anyone have experiences or advices concerning this matter?
Hi Ian, thanks for you reply.
The thing is, whatever record we are creating ( be it a email record itself or some custom entity) I need the email that is going to be sent through the worflow to contain information from the record that triggered the workflow. For example, the mail body. We were thinking about creating an email record by the rest api, and have an workflow send the email acctually after creation.
Anyways I am affraid we might end up extending the api.
Ian, I did setup a simple workflow with a send-email action, and an emailtemplate to “map” data from a customentity the workflow fires on.
I can grab data from the source entity fairly easy in the template but I am wondering if it is possible somehow to add an attachment to the generated email.
I couldn’t find any information if this is possible at all, do you know if this is possible?
just want to give a quick update on the approach we used to handle this requirement.
We created a custom modul to “stage” the emails that we want to send out, containing all the Information and links to attachments we need for later Email sending.
The records for this modul are created by an external application via SOAP api. When everything is persisted in Suite, we set a flag on the record, flagging it as ready to be sent.
We then have a logic hook implemented that handles the actual email-sending though SuiteCRM.