I want to set up an SMTP server for sending emails

Setting up an SMTP server (for sending emails) can be done in different ways depending on whether you’re using a third-party provider (like Gmail, Outlook, etc.) or your own custom domain/server. Since you asked “only email setup”, here’s a step-by-step guide to setting up SMTP using Gmail and then a general method for a custom domain.

Option 1: Setup Gmail SMTP (Simplest for personal use)

Step-by-Step (Gmail SMTP):

    1. Enable 2-Step Verification on your Google Account:

 

    1. Generate App Password:

 

  1. SMTP Settings for Gmail:

    • SMTP Server: smtp.gmail.com
    • SMTP Port: 587 (TLS) or 465 (SSL)
    • Username: your Gmail address (e.g., example@gmail.com)
    • Password: the App Password you just generated
    • Encryption: TLS or SSL (match the port)

 

Option 2: Custom SMTP Server (e.g., using your domain via cPanel or VPS)

Step-by-Step:

    1. Log in to your hosting provider or cPanel

    2. Create an Email Account

      • Go to Email Accounts
      • Create a new email (e.g., noreply@yourdomain.com) with a password.

 

    1. Note the SMTP Settings from your host (usually provided)

      • SMTP Server: mail.yourdomain.com or as given
      • Port: 587 (TLS) or 465 (SSL)
      • Username: full email (e.g., noreply@yourdomain.com)
      • Password: the password you created
      • >Encryption: TLS/SSL

 

  1. (Optional) Enable SMTP Authentication

    • This ensures your server requires username/password to send mail.