[removed] !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s[removed].insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '550537873994715'); fbq('track', 'PageView'); [removed] src="https://www.facebook.com/tr?id=550537873994715&ev=PageView&noscript=1" />
KOKA | ERP | CRM | POS | Software for Businesses
Request Free Demo
GST billing software | Invoice management | Koka Books
KOKA Books POS

Setting up Email/SMTP for Forgot password & other email notifications.

Stock Transfer

What is Stock Adjustment? And how to use it?

Reports

Adding & Editing Payment Method or Pay Via options (Custom payments)

[ADDON]: Accounting & BookKeeping Module/Addon

Frequenty asked questions, Common Issues & Errors.

Feature List for KOKAPOS

Mobile app KOKA POS

Setting up Email/SMTP for Forgot password & other email notifications.

Setting Email for Forgot Password & Other application-wide emails

Email functionality is used in some parts of applications like “Forgot Password”, “Offline Payment approval for SaaS module” and others from time-to-time.

During installation steps, you can set up email setting with all “SMTP” details or if you’re server support php-mail then you can use that too (php-mail is not recommended)

But if you have not set up it correctly then you can follow the below steps to do it:

  • Open you .env file
  • You will find the below configurations present there
  • MAIL_DRIVER=smtp
  • MAIL_HOST=
  • MAIL_PORT=
  • MAIL_USERNAME=
  • MAIL_PASSWORD=
  • MAIL_ENCRYPTION=
  • Fill in the appropriate details, you can get in contact with your hosting provider for any of the values above.
  • For example with Gmail it looks like below:
  • MAIL_DRIVER=smtp
  • MAIL_HOST=smtp.gmail.com
  • MAIL_PORT=587
  • MAIL_USERNAME=
  • MAIL_PASSWORD=
  • MAIL_ENCRYPTION=TLS
  • Some hosting disable port 587 and due to that email may not work, contact your hosting provider & they will enable it.

NOTE: Use either TLS or SSL, don’t type both. Also, provide the port according to the given encryption used.

Gmail SMTP:

If you’re using Gmail or GSuite it might throw some errors, check below for a solution:

  • 1. If you have 2-factor authentication enabled (almost all have this enabled) then create an app password for pos.
  • 1. More details here https://support.google.com/accounts/answer/185833?hl=en
  • 2. Create app password from here: https://myaccount.google.com/apppasswords
  • 3. Change port & encryption: Try using port 465 and encryption SSL
Updated on September 26, 2025