SMTP Email Server
Yournotify provides SMTP email server for marketing campaigns for businesses in Nigeria and across Africa. Connect via Nodejs, Nodemailer, WordPress or custom SMTP plugins
For WordPress, you can checkout:
For PHP, you can checkout:
const nodemailer = require("nodemailer");
try {
const transporter = nodemailer.createTransport({
host: "smtp.yournotify.com",
port: 587,
secure: true,
auth: {
user: '[YOUR EMAIL]', // Email for Yournotify account
pass: '[YOUR API KEY]' // API key generated from Yournotify
},
tls:{
rejectUnauthorized: false,
}
});
const info = await transporter.sendMail({
from: '"Yournotify" <noreply@yournotify.com>', // sender address
to: "name@domain.com", // list of receivers
subject: "SMTP is coming to Yournotify!", // Subject line
text: "Hello SMTP", // plain text body
html: "Hello SMTP", // html body
});
console.log("Message sent: %s", info.messageId);
return response.status(200).send({ status: 'success', message: "SMTP message was sent successfully" });
} catch (error) {
console.error(error);
return response.status(500).send({ status: 'failed', message: error });
}