SOLVED

REST API to send emails to contacts without request campaign

Go to solution
Anonymous
Not applicable

REST API to send emails to contacts without request campaign

HI,
 I am tring to integrate Marketo with Java App using REST. I need to send different kinds of emails to customers. Java app has user profile and email attribtues like subject and body.   .. .SInce i dont want to hardcode campaign ids into java application, Is there any way that we can send mails to contacts just creating  those new contacts in Marketo without requesting any campaigns? 

Much appreciated your help.
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: REST API to send emails to contacts without request campaign

Please take a look at this blog post:
http://developers.marketo.com/blog/sending-an-email-with-dynamic-content-from-marketo-using-the-api/

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: REST API to send emails to contacts without request campaign

Please take a look at this blog post:
http://developers.marketo.com/blog/sending-an-email-with-dynamic-content-from-marketo-using-the-api/
Anonymous
Not applicable

Re: REST API to send emails to contacts without request campaign

Thanks Murtza, 
  But this requires, java App has to have lookup table/map,   mailtype as key and Marketo campaign id as value. 
 If business is going to add new campaigns, dev team have to change at look up level. Is there any other way to send emails to marketo contact if we have  email body & subject ?
 
Anonymous
Not applicable

Re: REST API to send emails to contacts without request campaign

Hi Santhosh

I read Murtza's blog and feel below.
- Using single campaign ID
- Design a mail using tokens
- Set mail subject & body into request parameter tokens
- Make a call "Request Campaign" with parameters
Your app always use same campaign ID, but your app can change different kind of mails dynamically.
Is this not your solution?
Anonymous
Not applicable

Re: REST API to send emails to contacts without request campaign

I am not sure if I understand your constraint. You cannot look up the email subject or body from your database before calling this API?
Anonymous
Not applicable

Re: REST API to send emails to contacts without request campaign

Thanks Murtza and Takehiro, I used single template for all the types with multiple tokens. 
Thank so much.