const OneBlink = require('@oneblink/sdk')await OneBlink.sendEmail({ subject: 'Message title', html: '<p>HTML version of the message</p>', from: { address: 'noreply@example.com', name: 'No Reply', }, to: ['email@example.com'], cc: ['you@example.com'], bcc: ['not-you@example.com'], attachments: [ { filename: pdfFileName, content: pdfData, contentType: 'application/pdf', encoding: 'binary', }, ],}) Copy
const OneBlink = require('@oneblink/sdk')await OneBlink.sendEmail({ subject: 'Message title', html: '<p>HTML version of the message</p>', from: { address: 'noreply@example.com', name: 'No Reply', }, to: ['email@example.com'], cc: ['you@example.com'], bcc: ['not-you@example.com'], attachments: [ { filename: pdfFileName, content: pdfData, contentType: 'application/pdf', encoding: 'binary', }, ],})
This function uses the popular nodemailer internally to send emails. Please see the documentation for Message Configuration for available options.
nodemailer
Example
Options
This function uses the popular
nodemailer
internally to send emails. Please see the documentation for Message Configuration for available options.