await step.email('email', async () => {
    return {
        subject: 'You received a message',
        body: 'A new post has been created',
    };
});

The email step allows you to send an email to a user. This is useful when you need to send an email to a user, such as a welcome email, password reset email, or any other email you need to send.

await step.email('email', async () => {
    return {
        subject: 'You received a message',
        body: 'A new post has been created',
    };
});

Email Step Output

subject
string
required

The subject of the email.

body
string
required

The HTML body of the email.

Email Step Result

The email step does not return any result object.