Passer au contenu principal

mailgun@0.3.3

Functions

execute(operations)Operation

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

send(params)

Create an event

execute(operations) ⇒ Operation

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

Kind: global function

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

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

send(params)

Create an event

Kind: global function
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',
},
})