Skip to main content

mailgun@0.3.0

Adaptor

Adaptor.execute

Kind: static class of Adaptor

new exports.execute(operations)

Execute a sequence of operations. Wraps language-common/execute, and prepends initial state for mailgun.

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

Adaptor.send(params)

Create an event

Kind: static method of Adaptor
Access: public

ParamTypeDescription
paramsobjectParams for sending an email

Example

send({
from: 'from_email',
to: 'to_email',
subject: 'Your Subject',
text: 'Your message goes here',
attachment: {
url: 'www.google.com/doodle.png',
filename: 'forYou.png',
},
})