• Posted by TWS on مارس 17, 2025 at 3:20 ص

    To use Gmail for SMTP mail sending, you’ll need to configure it with 2-factor authentication (2FA) and an App Password for secure access. Follow these steps to set it up:

    Steps to Configure Gmail SMTP

    1. Enable 2FA
    Log in to your Google account and go to the Security settings. Enable 2-factor authentication (2FA) if you haven’t done so already.

    2. Create an App Password
    Once 2FA is enabled, create an App Password for your project by selecting the appropriate option at the bottom of the 2FA page. Name the password to easily recognize it later (e.g., “Moasala SMTP”).

    3. Generate and Save the App Password
    Google will generate a 16-character password (lowercase letters only, no spaces). Save this password securely for future use, as you will need it in your SMTP settings.

    Gmail SMTP Example:

    • Username: yourgmail@gmail.com
    • Password: (The 16-character App Password
      generated by Google)
    • Host: smtp.gmail.com
    • Port: 587 (TLS) or 465 (SSL)
    • Secure connection type: TLS (recommended) or
      SSL

    Good to Know

    Google shows the App Password with spaces, but you should enter it without spaces in your SMTP settings to avoid any issues.

    By following these steps, you’ll ensure your Gmail SMTP configuration is secure and compatible with Google’s updated security requirements.

    TWS replied 1 year, 2 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

Log in to reply.