Trigger workflows on new emails, and send emails to yourself as part of a Pipedream workflow.
Get a unique address where you can send emails to trigger your workflow.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Customize and send an email to the email address you registered with Pipedream. The email will be sent by notifications@pipedream.com.
export default defineComponent({
async run({ $ }) {
const options = {
subject: 'Your subject here',
text: 'Your text here'
};
$.send.email(options);
},
});
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})