-
Notifications
You must be signed in to change notification settings - Fork 117
Email Repeater With Template
cloudspark edited this page Nov 24, 2013
·
2 revisions
Create a SMTP Forwarder Channel :
POST /rest/channel
{
action : "email.smtp_forward",
name : "Helo FuBa"
config : {
"rcpt_to" : "[email protected]"
}
}
RESPONSE
{
id : "email channel id"
}
Create a Template Channel
POST /rest/channel
{
action : "template.text_template",
name : "Generic Wrapper"
config : {
}
}
RESPONSE
{
id : "template channel id"
}
Create a SMTP bip with a source edge pointing to My Template, who has an edge to "Helo FuBa"
POST /rest/bip
{
type : "smtp",
hub: {
source: {
transforms: {
"template channel id": {
"message": "Here's a template wrapper for the email, which says : '[%source#body_text%]'"
}
},
"edges": [ "template channel id" ]
},
"template channel id": {
"transforms": {
"email channel id": {
"body_text": "[%template channel id#message%]",
"subject": "[%source#subject%]"
}
},
"edges": [ "email channel id" ]
}
}
}
RESPONSE
{
name : "lcasKQosWire22" // auto generated
_repr : "[email protected]"
}
Core
Tutorials
Cookbook
- Example Bips
- Email Repeater
- One Time Email Receive
- Email Repeater With Template
- Email Repeater, Dropbox Attachment Save
- Email To RSS
- Web Hook to FB&Twitter
- One Time Message Serve
- RSS Atom Subscribe
- Twitter Followback
- SoundCloud oEmbed (native) Feed
- SoundCloud oEmbed (embedly) Feed
- Instagram Media Sync to Dropbox
Modules
Extras