Or copy link
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.
Before configuring your application, you need to identify which type of AmarHost service you are using.
If you host your website with AmarHost and want to send emails from an address like [email protected], follow these steps:
[email protected]
Log in to your cPanel.
Navigate to the Email section and click Email Accounts.
Find the email address you want to use and click Connect Devices.
Look for the box labeled “Secure SSL/TLS Settings”.
Outgoing Server: Usually mail.yourdomain.com
mail.yourdomain.com
SMTP Port: 465
465
If you bought a specific SMTP plan (e.g., “SMTP 25” or “SMTP 100”) for high-volume transactional emails:
Log in to the AmarHost Client Area.
Go to Services > My Services.
Click on your active SMTP Mail Service.
You will see a dashboard listing your Server Name, Username, Password, and Port.
Regardless of the platform you are using (WordPress, Laravel, generic PHP), you will need the following standard details.
smtp.amarhost.com
587
2525
The easiest way to connect WordPress to AmarHost SMTP is via a plugin.
Install and activate the WP Mail SMTP plugin.
Go to Settings > WP Mail SMTP.
Scroll to the Mailer section and select “Other SMTP”.
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.
Click Save Settings and use the “Email Test” tab to verify connection.
If you are coding a custom script, use the following configuration structure:
$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;
If you skip this step, your emails may be rejected by Gmail or Outlook.
SPF Record:
For Shared Hosting, your default SPF record usually works. It looks like: v=spf1 +a +mx +ip4:xx.xx.xx.xx ~all.
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.
Verify: After adding these records, wait 1-2 hours for propagation before testing.
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).
yourdomain.com
cPanel Essential Guide: Master Web Hosting Management w...
Many companies today use Webuzo as a hosting control pa...
7 cPanel Settings You Must Change Right Now For 3X Fast...
Save my name, email, and website in this browser for the next time I comment.