Plans from ₹99 a monthFree HTTPS on every site18% GST invoice with your GSTIN for input tax creditFull refund within 7 days of your first paymentPay yearly, get 2 months freeNo auto-renewal, everPlans from ₹99 a monthFree HTTPS on every site18% GST invoice with your GSTIN for input tax creditFull refund within 7 days of your first paymentPay yearly, get 2 months freeNo auto-renewal, ever

Email

Send email from your website or app

Let WordPress, PHP sites and Python apps send mail through your FiniteHost mailbox, with the exact SMTP settings and a Python example.

Intermediate6 min readUpdated 27 October 2026
On this page

Contact forms, order confirmations, password resets and alerts from a script all need to send email. Code hosted on FiniteHost sends it the same way a mail app does: it signs in to FiniteHost's own mail server with a mailbox address and password. Mail sent this way is signed with your domain's DKIM key, so it passes SPF, DKIM and DMARC and stays out of spam.

Before you start#

  • Create a mailbox to send from, such as noreply@acme.in or website@acme.in, under Email accounts in the panel, and note its password. See Email accounts.
  • Python compute plans have no mailboxes of their own. An app on a Compute plan can sign in with any mailbox you have on a web or Mail plan.

The settings#

SettingValue
SMTP server (host)mail.finitehost.com
Port and encryption587 with STARTTLS, or 465 with SSL/TLS
User nameThe full mailbox address, for example noreply@acme.in
PasswordThat mailbox's password
From addressThe same mailbox address. Other From addresses are refused.

Everything sent this way counts towards that mailbox's daily sending limit, the same as mail from webmail or a phone. See Email limits and policies.

WordPress#

WordPress's built-in wp_mail() has no mail server to talk to here. Install an SMTP plugin, such as WP Mail SMTP or FluentSMTP, and choose its "Other SMTP" (generic SMTP) option:

  1. SMTP host: mail.finitehost.com.
  2. Encryption: TLS (STARTTLS) with SMTP port 587, or SSL with port 465.
  3. Authentication: on. Username noreply@acme.in, Password the mailbox password.
  4. From email: noreply@acme.in, and tick Force From Email if the plugin offers it, so contact-form plugins cannot change it.
  5. Send a test email from the plugin's tools page, to an address outside your domain, and check it arrives.

PHP without WordPress#

Use a mail library with SMTP support, such as PHPMailer or Symfony Mailer, with the settings above. PHP's plain mail() function has no server to hand mail to, so use SMTP instead.

Python#

smtplib is part of Python, so nothing needs installing. Keep the password out of your code: put it in a file in the app folder that is not shared, or in a setting your app reads.

Python
import smtplib
import ssl
from email.message import EmailMessage

HOST = "mail.finitehost.com"
USER = "noreply@acme.in"
PASSWORD = open("mail_password.txt").read().strip()

msg = EmailMessage()
msg["From"] = USER
msg["To"] = "priya@example.com"
msg["Subject"] = "Daily report"
msg.set_content("Today's orders: 42")

with smtplib.SMTP(HOST, 587, timeout=30) as s:
    s.starttls(context=ssl.create_default_context())
    s.login(USER, PASSWORD)
    s.send_message(msg)

For port 465, use smtplib.SMTP_SSL(HOST, 465, context=ssl.create_default_context(), timeout=30) and leave out the starttls() line.

Troubleshooting#

SymptomCause and fix
Connection times outThe host is not mail.finitehost.com, or the port is 25. Use 587 or 465.
535 Authentication failedWrong user name or password. The user name is the full address. Make a new password in the panel if unsure.
553 Sender address rejected: not owned by userThe From address differs from the signed-in mailbox. Make them the same.
Sending stops after many messagesThe mailbox reached its sending limit. Wait, or upgrade. Use a bulk-mail service for newsletters.
CERTIFICATE_VERIFY_FAILEDYou connected by IP address. Use the name mail.finitehost.com, which the certificate covers.
Mail arrives in spamSee Keep your mail out of spam.

What's next#

Was this helpful?

Still stuck?

Email support@finitehost.com with your subscription ID (it starts with t, shown on the panel's Dashboard) and what you tried. A person replies, usually within one business day.

Last updated 27 October 2026. Found something wrong? Tell support@finitehost.com.