Configuring Business Mail on Email Scripts

Business Email can be configured on Email scripts using various coding languages. The major objective for doing this is to customize a contact form present on a website.

This article provides you all the necessary configurations which you should know while configuring Business Mail on an email script.


List of settings that can be provided for configuring Business Mail on Email Scripts

SMTP Host Name
Port No 465
Encryption SSL


SMTP Host Name
Port No 587
Encryption STARTTLS


Code Snippets for reference


require_once "Mail.php";
$username = 'Your Business Mail Email address';
$password = 'Your Business Mail password';
$smtpHost = 'ssl://';
$smtpPort = '465';
$to = 'Receiver email';
$from = 'Sender email';

//Note - To and From address should not be the same

$subject = 'Contact Form';
$successMessage = 'Message successfully sent!';

$replyTo = '';
$name = '';
$body = '';

$headers = array(
'From' => $name . " <" . $from . ">",
'To' => $to,
'Subject' => $subject
$smtp = Mail::factory('smtp', array(
'host' => $smtpHost,
'port' => $smtpPort,
'auth' => true,
'username' => $username,
'password' => $password

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
} else {



import smtplib
import ssl
from email.mime.text import MIMEText

smtp_server = ""
smtp_port = 465
sender = ""
password = "XXXXXXX"
recipients = [""]

context = ssl.create_default_context()

s = smtplib.SMTP_SSL(smtp_server, smtp_port, context)

s.login(sender, password)

msg = MIMEText("""Hey, this is test body""")
msg['From'] = sender
msg['To'] = ", ".join(recipients)
msg['Subject'] = "test subject"
s.sendmail(sender, recipients, msg.as_string())


Node Mailer

"use strict";
const nodemailer = require("nodemailer");

function main() {

let transporter = nodemailer.createTransport({
host: "",
port: 465,
secure: true,
auth: {
user: "",
pass: "XXXXXXX",

let info = transporter.sendMail({
from: '"User" <>',
to: "",
subject: "Hello",
text: "Hello world?",
html: "<b>Hello world?</b>",

console.log("Message sent: %s", info.messageId);



If the above settings are not working from an Email client or Script it should be happening because of the below-mentioned cases

Case 1: Business Mail cloud infra is blocking the client IP

If there are continuously failed authentication attempts, we block the client IP

  • If you are is trying to connect from your local machine, Kindly get back to us with the public IP by accessing
  •  If you are  trying to connect from the Webhosting, Kindly contact the system administrator and get back to us with the Server's public IP

Case 2: Client is blocking the port connection at their end ( Port is blocked at the firewall)

If you are is trying to connect from your local machine

Kindly use a different port combination: (465,SSL)/(587,STARTTLS)

Get back to us with the output of the following commands

  • "telnet <port-no>" (omit the quotes)
  • "telnet <port-no>" (omit the quotes)

If you are trying to connect from the Webhosting

Contact the server admins to get back to us with the output of the following command

  • "telnet <port-no>" (omit the quotes)
  • "telnet <port-no>" (omit the quotes)

You must first enable telnet commands in order to run telnet commands. For information on how to enable telnet commands for your specific operating system, kindly refer these articles:

If you are using any other coding language, feel free to let us know. So that we can provide you the steps for that too :)

Hope this article has helped you.

Facing issues while configuring Business Mail on Email Scripts, contact us at along with the screenshot of the configuration you are using and the error message you are receiving. We will help you in every possible way.

Was this article helpful?
0 out of 0 found this helpful