Botpress send mail

Hi.

How can send mail fron user var to smtp?
Please, tx`s.
Joe

Hey @joseo ! To send emails, I suggest you create a Custom Action (see docs here https://botpress.io/docs/main/code/#actions).

Your Custom Action would send emails using a JS library of your choice. You can have a look at github.com/emailjs/emailjs-smtp-client .

You will have to install that library in your Botpress server. See here for more info on installing external dependencies: https://botpress.io/docs/build/code/

Alternatively, you could send emails over HTTPS using a service like Mailgun or AWS SES using the bundled axios library that comes with Botpress. The advantage of that method is you won’t have to install custom dependencies :tada: !

1 Like

Tanks…Works like a charm.