NEXT HOUR
  • Introduction
    • Introduction
    • Key Features
    • Next Hour Addons
  • Installation
    • Server Requirements
    • Shared Hosting Install
    • Installation Steps
    • Installation on Apache
  • Setting up NextHour
    • Getting Started
    • General Settings
    • SEO Settings
      • Google Analytics
      • Google Adsense Setting
      • Facebook pixel
    • PWA Setup
    • Affiliate
    • Mail Settings
    • Google Drive Link
    • Import Demo Content
    • Chat Setting
    • Player Setting
    • OTP Login
    • Social Login Setting
      • Facebook Login Setting
      • Google Login Setting
      • GitLab Login Setting
      • Amazon Login Setting
    • AWS Setting
    • ReCaptcha Setting
    • Wallet settings
    • App UI Shorting
    • App Setting
      • App Secret Key
      • API setting
      • App Slider Setting
    • Media Manager
    • Push Notifications
    • Setting up Multicurrency
    • Multi-Screen Setting
    • Cookie Setting
    • Ai Tool
    • Open AI API Keys
    • TMDB API Key
    • YouTube API Key
    • URL insert Features
    • Payment Gateway Setup
    • Payment Gateways
      • Stripe Payment Gateway
      • PayPal Payment Gateway
      • Razorpay Payment Gateway
      • PayU Payment Gateway
      • Braintree Payment Gateway
      • Coinpay Payment Gateway
      • Pay Stack Payment Gateway
      • Paytm Payment Gateway
      • INSTA MOJO Payment Gateway
      • MOLLIE Payment Gateway
      • CASHFREE Payment Gateway
      • OMISE Payment Gateway
      • FLUTTER RAVE Payment Gateway
      • PAYHERE Payment Gateway
      • WORLDPAY Payment Gateway
      • SQUAREPAY Payment Gateway
      • PhonePe Payment Gateway
    • Bunny storage
    • Wasabi Storage
    • Twilio Setting
    • Encrypt URL
  • Front Setting
    • Landing Page
    • Sign In / Sign Up Settings
    • Slider Setting
    • Custom Page
  • Geolocation
  • Translations
  • Database backup
  • faq
    • Installation FAQ's
    • General Faq's
    • Access Denied
    • Disclaimer
    • Regular & Extended Licenses
    • Privacy Policy
  • Update Details
    • Changelogs
    • Update Process
  • Support
    • Support
    • Source and Credits
  • Conclusion
    • Conclusion
  • OUR Products
    • Our Products
Powered by GitBook
On this page

Was this helpful?

  1. Setting up NextHour

Mail Settings

PreviousAffiliateNextGoogle Drive Link

Last updated 11 months ago

Was this helpful?

Login To Admin Dashboard -> Site Settings -> Mail Settings

In Mail Detail Section Enter the name with no spaces. There are three Mail Drivers: SMTP, Mail, Sendmail, if SMTP is not working then check Sendmail.

There are three Mail Drivers: SMTP, Mail, Sendmail, if SMTP is not working then check Sendmail.

An email driver is a software component that allows applications to send and receive email messages. It acts as an interface between the application and the email server, and allows the application to communicate with the server using a standard protocol such as SMTP (Simple Mail Transfer Protocol) or IMAP (Internet Message Access Protocol).

Email drivers are commonly used to send automated email notifications, send emails, confirmation emails or password reset emails to users.

SMTP (Simple Mail Transfer Protocol) is a protocol for sending email messages between servers. Most email systems that send mail over the Internet use SMTP to send messages from one server to another.

Note : If showing an error 500 in reset password, New User Registration and Payment Gateways then must check your mail setting. Reset password, New User Registration , and Payment Gateways error show due to you forget to add mail details or wrong mail details in mail setting or .env file. also check error via debug true:

Here are some examples of how it may look

MAIL_FROM_NAME="${APP_NAME}"
MAIL_FROM_ADDRESS=info@nexthour.com
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=465
MAIL_USERNAME=themail
MAIL_PASSWORD=********
MAIL_ENCRYPTION=SSL
MAIL_FROM_NAME="${APP_NAME}"
MAIL_FROM_ADDRESS=info@nexthour.com
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=587
MAIL_USERNAME=themail
MAIL_PASSWORD=********
MAIL_ENCRYPTION=TLS

Gmail SMTP Settings:

  • SMTP username: Your Gmail address.

  • SMTP server address: smtp.gmail.com.

  • Gmail SMTP port (TLS): 587.

  • SMTP port (SSL): 465.

  • SMTP TLS/SSL required: yes.

2. Once you enabled the 2 step verification on your account under security tab visit App password section as shown below.

3. Click on App passwords to create new app and it will ask you for sign in again, Sign in again to continue. Once you signed in you will see a new app creation window.

4. Click on select app option and choose Other (custom name) option. Enter the App name example : Nexthour signin and click on generate button.

5. Once done ! you will successfully see a popup with password copy that password and back to Nexthour admin panel and visit Site Settings -> Settings -> Mail settings.

6. Put following settings in your mail settings

Mail driver : sendmail Mail port : 465 Mail username : your gmail username or email address Mail password : App password which you copied above. Mail Encryption : TLS

7. To test the mail is working on not use forget password feature and if mail not received kindly check spam folder too.

If you're receiving emails or spam folder then probably your email address is used in some phishing activities. To resolve it kindly contact mail provider, its not script issue..

The Web Site Just Showing a Blank White Page Blank white screen due to you give space in app name and mail from the name. Go to .env file and remove space and special characters in the app name and mail from the name.

to change directly in .env file -> Open and edit .env file.

MAIL_DRIVER=smtp (some times support sendmail)
MAIL_HOST=mail.yourdoamin.com (For Gmail = smtp.gmail.com)
MAIL_PORT=2525  (For Gmail = 465)
MAIL_USERNAME=your_emailid
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=null  (For Gmail = ssl)

SMTP password: Your Gmail password. If Using Gmail then Use App Password.

1. To Setting up Gmail 2 Step Verification must be enabled on your Gmail account if not then enable it from and visit security tab to enable it.

https://mediacitydocs.gitbook.io/next-hour/faq/what-is-app-debug-mode#what-is-app-debug
Process of App Password
https://myaccount.google.com