HomeConvertNow KnowledgebaseSMTP Configuration

SMTP Configuration

ConvertNow exposes an SMTP relay compatible with any framework or language that supports standard SMTP. Use your cn_live_ API key as the SMTP password.



Connection settings

Setting

Value

Host

out.convertnow.co

Port (recommended)

465 — Implicit SSL

Port (alternative)

25 / 2525 — STARTTLS

Encryption

Implicit SSL on 465 (recommended); STARTTLS on 25 / 2525

Username

Your account email address

Password

Any active cn_live_ API key



Nodemailer (Node.js)

import nodemailer from ‘nodemailer’;

const transporter = nodemailer.createTransport({

host: ‘out.convertnow.co’,

port: 465,

secure: true,

auth: { user: ‘[email protected]’, pass: ‘cn_live_YOUR_KEY’ },

});

await transporter.sendMail({

from: ‘”My App” <[email protected]>’,

to: ‘[email protected]’,

subject: ‘Hello from ConvertNow SMTP’,

html: ‘<h1>It works!</h1>’,

});



PHPMailer (PHP)

$mail = new PHPMailer(true);

$mail->isSMTP();

$mail->Host = ‘out.convertnow.co’;

$mail->SMTPAuth = true;

$mail->Username = ‘[email protected]’;

$mail->Password = ‘cn_live_YOUR_KEY’;

$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMIME;

$mail->Port = 465;

$mail->setFrom(‘[email protected]’, ‘My App’);

$mail->addAddress(‘[email protected]’);

$mail->Subject = ‘Hello from ConvertNow SMTP’;

$mail->isHTML(true);

$mail->Body = ‘<h1>It works!</h1>’;

$mail->send();



Django (Python)

# settings.py

EMAIL_BACKEND = ‘django.core.mail.backends.smtp.EmailBackend’

EMAIL_HOST = ‘out.convertnow.co’

EMAIL_PORT = 465

EMAIL_USE_SSL = True

EMAIL_HOST_USER = ‘[email protected]

EMAIL_HOST_PASSWORD = ‘cn_live_YOUR_KEY’

DEFAULT_FROM_EMAIL = ‘[email protected]



Rails ActionMailer (Ruby)

config.action_mailer.smtp_settings = {

address: ‘out.convertnow.co’,

port: 465,

ssl: true,

user_name: ‘[email protected]’,

password: ‘cn_live_YOUR_KEY’,

authentication: :plain,

}



smtplib (Python)

import smtplib, ssl

from email.mime.multipart import MIMEMultipart

from email.mime.text import MIMEText

msg = MIMEMultipart(‘alternative’)

msg[‘Subject’] = ‘Hello from ConvertNow SMTP’

msg[‘From’] = ‘[email protected]

msg[‘To’] = ‘[email protected]

msg.attach(MIMEText(‘It works!’, ‘plain’))

msg.attach(MIMEText(‘<h1>It works!</h1>’, ‘html’))

context = ssl.create_default_context()

with smtplib.SMTP_SSL(‘out.convertnow.co’, 465, context=context) as s:

s.login(‘[email protected]’, ‘cn_live_YOUR_KEY’)

s.send_message(msg)

This is a staging environment