> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.mysmtp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up SMTP Credentials

> Learn what SMTP credentials are, how to generate them for custom domains or mySMTP, and how to test and troubleshoot common setup issues.

## **1. What Are SMTP Credentials?**

SMTP credentials consist of:<br />✅ **SMTP Server host name** – The mail server responsible for sending emails. ( eg. relayxx.mysmtp.com)<br />✅ **SMTP Port** – The network port used for email transmission (e.g., 587, 25).<br />✅ **SMTP Username** – Usually the email address or an assigned username for authentication.<br />✅ **SMTP Password** – The password associated with the SMTP username, ensuring secure access.

These details are used by email clients, applications, or automated systems to send emails reliably.

## **2. How to Generate SMTP Credentials**

Generating SMTP credentials depends on your **email provider** or **SMTP relay service**. Below are common steps for setting up SMTP credentials:

### **🔹 For Custom Domains (e.g., Your Own Mail Server)**

1️⃣ **Access Your Email Hosting Provider's Dashboard**

* Log into **cPanel, Plesk, or any email control panel** provided by your hosting service.

2️⃣ **Find the SMTP Settings Section**

* Look for **"Mail Settings"**, **"SMTP Configuration"**, or similar options.

3️⃣ **Create a New Email Account or SMTP User**

* If required, generate a new **SMTP username and password**.

4️⃣ **Note Down the SMTP Server and Port Information**

### **🔹 For Third-Party SMTP Providers (e.g., mySMTP)**

1️⃣ **Sign Up for an SMTP Relay Service**

* Go to your chosen provider's website and create an account.

2️⃣ **Generate API Keys or SMTP Login Credentials**

* Navigate to **SMTP settings** and create new credentials.

3️⃣ **Verify Your Domain and Authentication Records**

* Add **SPF, DKIM, and DMARC** records to your DNS settings for improved deliverability.
* Use [test.smtp.ai](https://test.smtp.ai) to verify setup.

## **3. Testing Your SMTP Credentials**

Before sending emails, test your SMTP setup to avoid errors.

🔹 **Use [test.smtp.ai](https://test.smtp.ai) to check:**<br />✅ **Authentication (SPF, DKIM, DMARC)**<br />✅ **SMTP connectivity and response time**<br />✅ **Blacklist status**

## **4. Troubleshooting Common SMTP Issues**

🚨 **Incorrect Username/Password:** Double-check credentials and reset if necessary.<br />🚨 **Port Blocked by ISP:** Try switching to **587 (TLS)**<br />🚨 **Authentication Failed:** Ensure SMTP authentication is enabled in email settings.<br />🚨 **Emails Going to Spam:** Set up SPF, DKIM, and DMARC records correctly.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.