Amar Host Helpdesk Amar Host Helpdesk
  • Helpdesk Article
  • Forums
My Account
Amar Host Helpdesk Amar Host Helpdesk
My Account
  • Helpdesk Article
  • Forums
  • banner shape
  • banner shape
  • plus icon
  • plus icon

SMTP Integration Guide with AmarHost

Updated on January 19, 2026
4 minutes
SMTP,Hosting Guide
Share

SMTP Integration Guide with AmarHost

Or copy link

Clipboard Icon
49 Views

SMTP Integration Guide with AmarHost

Integrating SMTP (Simple Mail Transfer Protocol) ensures that your website’s emails—such as order confirmations, password resets, and contact form submissions—land in the inbox rather than the spam folder.1 AmarHost provides two primary ways to use SMTP: through their Standard Web Hosting (cPanel) or their Dedicated Transactional SMTP Service.

 

This guide covers how to find your credentials and configure SMTP for both scenarios.


Phase 1: Locating Your Credentials

Before configuring your application, you need to identify which type of AmarHost service you are using.

Scenario A: You use AmarHost Shared Hosting (cPanel)

If you host your website with AmarHost and want to send emails from an address like [email protected], follow these steps:

  1. Log in to your cPanel.

  2. Navigate to the Email section and click Email Accounts.

  3. Find the email address you want to use and click Connect Devices.

  4. Look for the box labeled “Secure SSL/TLS Settings”.

    • Outgoing Server: Usually mail.yourdomain.com

    • SMTP Port: 465

Scenario B: You purchased a Dedicated SMTP Package

If you bought a specific SMTP plan (e.g., “SMTP 25” or “SMTP 100”) for high-volume transactional emails:

  1. Log in to the AmarHost Client Area.

  2. Go to Services > My Services.

  3. Click on your active SMTP Mail Service.

  4. You will see a dashboard listing your Server Name, Username, Password, and Port.


Phase 2: Configuration Settings

Regardless of the platform you are using (WordPress, Laravel, generic PHP), you will need the following standard details.

SettingValue for Shared Hosting (cPanel)Value for Dedicated SMTP Service
SMTP Hostmail.yourdomain.com(As shown in dashboard, e.g., smtp.amarhost.com)
EncryptionSSL or TLSTLS (Recommended)
Port465 (SSL) or 587 (TLS)587 (Standard) or 2525 (Alternate)
AuthenticationYesYes
UsernameYour full email (e.g., [email protected])The Username provided in your dashboard
PasswordYour email account passwordThe generic SMTP password provided

Phase 3: Integration Examples

1. WordPress Integration (Using WP Mail SMTP)

The easiest way to connect WordPress to AmarHost SMTP is via a plugin.

  1. Install and activate the WP Mail SMTP plugin.

  2. Go to Settings > WP Mail SMTP.

  3. Scroll to the Mailer section and select “Other SMTP”.

  4. Fill in the fields:

    • SMTP Host: mail.yourdomain.com (or your dedicated server IP)

    • Encryption: Select SSL.

    • SMTP Port: 465.

    • Authentication: Toggle On.

    • Username: Your full email address.

    • Password: Your email password.

  5. Click Save Settings and use the “Email Test” tab to verify connection.

2. Custom PHP Integration (PHPMailer)

If you are coding a custom script, use the following configuration structure:

PHP

$mail->isSMTP();
$mail->Host       = 'mail.yourdomain.com'; // or AmarHost dedicated SMTP server
$mail->SMTPAuth   = true;
$mail->Username   = '[email protected]';
$mail->Password   = 'your-secure-password';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; // Enable implicit TLS encryption
$mail->Port       = 465;

Phase 4: Critical DNS Records (SPF & DKIM)

If you skip this step, your emails may be rejected by Gmail or Outlook.

  1. SPF Record:

    • For Shared Hosting, your default SPF record usually works. It looks like: v=spf1 +a +mx +ip4:xx.xx.xx.xx ~all.

    • For Dedicated SMTP, you must add the SPF record provided in your AmarHost dashboard to your domain’s DNS manager.

  2. Verify: After adding these records, wait 1-2 hours for propagation before testing.


Troubleshooting Common Errors

  • Connection Refused (Port 25): AmarHost, like many providers, may block Port 25 to prevent spam. Always use Port 465 (SSL) or 587 (TLS).

  • Authentication Failed: Ensure you are using the full email address as the username, not just the part before the “@”.

  • Self-Signed Certificate Error: If your code rejects the certificate, ensure you are using the hostname that matches your SSL certificate (often mail.yourdomain.com rather than just yourdomain.com).

Tags : AmarHost cPanel Email Email Configuration Email Deliverability PHPMailer Port 465 Port 587 SMTP Integration SMTP Settings SPF and DKIM Transactional Email Web Hosting Guide WordPress SMTP WP Mail SMTP

Related Post

7 minutes cPanel

cPanel Essential Guide: Master Web Hosting Ma

cPanel Essential Guide: Master Web Hosting Management w...

How to Log In to the Webuzo Control Panel
1 minute Webuzo

How to Log In to the Webuzo Control Panel

Many companies today use Webuzo as a hosting control pa...

7 minutes cPanel

7 cPanel Settings You Must Change Right Now F

7 cPanel Settings You Must Change Right Now For 3X Fast...

Leave a Comment Cancel reply

Recent Posts

How to Connect GitHub Repositories to cPanel: Public & Private Guide
3 minutes February 14, 2026
SMTP Integration Guide with AmarHost
4 minutes January 19, 2026
How to Access Amarhost Shared Hosting via SSH using PuTTY
3 minutes January 19, 2026
VIP Member at AmarHost
Become a VIP Member at AmarHost and Unlock Exclusive Deals & Discounts
3 minutes January 9, 2026

Recent Comments

    Categories

    • AlmaLinux
    • Cloudflare
    • cPanel
    • Domain
    • Domain Guide
    • Getting Started
    • Hosting
    • Hosting Guide
    • Hosting Offer
    • Laravel
    • Script
    • Server
    • Server Guide
    • SMTP
    • Website & Apps
    • Webuzo
    • WHM
    • WordPress

    Tags

    .COM Domain Affordable Domains Affordable Pricing AlmaLinux Amar Hoster Buy .COM CDN Cheap Domains Cloudflare Cloudflare tutorial cPanel cPanel Email database DNS setup Domain Names Domain Registration Domain Transfer Email Configuration Email Deliverability Hosting Provider https://www.amar.host/affordable-com-domain-registration-starting-at-1099-tk-with-amar-hoster/ Installation guide Local Hosting PHPMailer Port 465 Port 587 Register Domain security Server setup setup guide SMTP Settings SPF and DKIM SSD Hosting SSL TLD Registration Transactional Email VPS hosting Web Hosting Web Hosting Guide website performance website security website speed whm WordPress SMTP WP Mail SMTP
    February 2026
    SMTWTFS
    1234567
    891011121314
    15161718192021
    22232425262728
    « Jan    
    Leaf Illustration

    © 2025 All Rights Reserved by Amar Host