How to send email using API

Anonymous
Not applicable

How to send email using API

Hi

I'm trying to send email using SOAP API, can you please tell me if it is supported and which API call/function can be used for this.

Thanks
Himanshu
Tags (1)
6 REPLIES 6
Anonymous
Not applicable

Re: How to send email using API

Hello Ahmed,

While you cannot send an email directly via SOAP, what you can do would be to invoke campaigns via the requestCampaign and scheduleCampaign calls.
Anonymous
Not applicable

Re: How to send email using API

Hi Ahmed,

Sadly, I'm not technologically inclined enough to tell you precisely how we do it, but my company sends many emails through the requestCampaign function of Marketo and we call these emails through the SOAP API - it works great for us.

It's all tied into our homegrown call prospecting software so that when one of our representatives makes a call, an automated email goes to the client afterwards.

-Emily
Anonymous
Not applicable

Re: How to send email using API

Definitely should use the calls Jim mentioned- requestCampaign for one-off emails and scheduleCampaign for batches. Also, you can override My Token values in the email with your own content so your API call can specify what is in the email.
Anonymous
Not applicable

Re: How to send email using API

Hi,

Thanks all for your replies. Could you please point me to a sample or attach a sample codebase for me to invoke campaigns via the requestCampaign and send out emails.

Anonymous
Not applicable

Re: How to send email using API

Anonymous
Not applicable

Re: How to send email using API

Hi All

Thanks for your replies.

I'm using PHP and the request is going fine, but I'm not able to send "programTokenList" with the request.

I have created 2 tokens, which I can not pass:

{{company.Company Name:default=ABC}}
{{company.Company Notes:default=These are company notes}}

Can you please tell me how to pass programTokenList parameter.

Would be great if you can provide the URL to the XML or PHP example of it.


Thanks