No results found

Your search did not match any results.

We suggest you try the following to help find what you're looking for:

  • Check the spelling of your keyword search.
  • Use synonyms for the keyword you typed, for example, try "application" instead of "software."
  • Try one of the popular searches shown below.
  • Start a new search.
Trending Questions

Sending Emails from OCI with Email Delivery Service in Node.js

Use Oracle Cloud Infrastructure to manage a high-volume email solution for sending out emails to many recipients for critical communications.

Author: Javier Mugueta


Oracle Cloud Infrastructure Email Delivery is an email sending service that provides a fast and reliable managed solution for sending high-volume emails that need to reach your recipients’ inbox. Email Delivery provides the tools necessary to send application-generated email for mission-critical communications such as receipts, fraud detection alerts, multi-factor identity verification, and password resets.

Go to a IAM/user and click on [Generate SMTP Credentials] as shown below:

Keep the credentials created in a safe place:

Create an Approved Sender (a real existing email account to put in the from field):

Grab the connection details:

Now test the code:

npm install [nodemailer](


Create a sendmail.js file:

var nodemailer = require('

                                    async function main() {
                                    let testAccount = await
                                    let transporter = nodemailer.createTransport({
                                        host: "",
                                        port: 25,
                                        secure: false,
                                        auth: {
                                        user: '',
                                        pass: 'BD..._',
                                    let info = await transporter.sendMail({
                                        from: '"',
                                        to: "",
                                        subject: "ssh access to",
                                     html: "<b>ssh -i
                                    deltakey -o ProxyCommand=\"ssh -i
                                    deltakey -W %h:%p -p 22
                          \" -p 22
                                    console.log("Message sent: %s", info.messageId);
                                    console.log("Preview URL: %s",

Test it:

node sendmail.js


That’s all, hope it helps! 🙂

If you’re curious about the goings-on of Oracle Developers in their natural habitat, come join us on our public Slack channel!

And don’t forget our free tier, where you can try out what we just discussed.