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
Param | Type | Description |
---|---|---|
operations | Operations | Operations to be performed. |
Example
execute(
create('foo'),
delete('bar')
)(state)
send(params)
Create an event
Kind: global function
Access: public
Param | Type | Description |
---|---|---|
params | object | Params 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',
},
})