SMTP Setup
What is SMTP?
According to Wikipedia
The Simple Mail Transfer Protocol is an internet standard communication protocol for electronic mail transmission. Mail servers and other message transfer agents use SMTP to send and receive mail messages.
Across the entire application, We have created many email templates like Account Verification email, Job Post Approval, Candidate Applied, and many more!
To send all the necessary emails, we need an Email Delivery service. Jobpilot uses SMTP for sending emails. Some of the popular SMTP Email Delivery Companies
- Amazon SES
- Mailtrap
- Mailgun
- Postmark
- Sendmail
- Sengrid
- Gmail
- cPanel
In short, it is used to send emails to your site users..!! You can use any email delivery platform as long as it supports SMTP.
How to Enable?
- To enable, Go to
Admin Panel
->SMTP Config
- Add the SMTP details and hit
Update
!
You can test the configuration by sending a test email from the same page. Also, you can use this tool to test your SMTP credentials
Or use .env file
Or use /.env
file to update the SMTP credentials
- Login to your FTP account.
- Open and Edit the
.env
file. - Copy and paste your server SMTP details into the file.
It will look something like this.
MAIL_MAILER=smtp MAIL_HOST=your-mail-host MAIL_PORT=your-mail-port MAIL_USERNAME=your-mail-username MAIL_PASSWORD=your-mail-password MAIL_ENCRYPTION=your-mail-encryption
1. How to get Amazon SES SMTP Credentials?
- Create to your AWS account. (Create Account)
- Go to
Services
->Simple Email Service
- Click on
SMTP Settings
from the left sidebar. - Click on
Create My SMTP Credentials
button. - Choose a username and click on
Create
button. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->SMTP Config
.
2. How to get Mailtrap SMTP Credentials?
- Create to your Mailtrap account. (Create Account)
- Go to
SMTP Settings
from the left sidebar. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->SMTP Config
.
3. How to get Mailgun SMTP Credentials?
- Create to your Mailgun account. (Create Account)
- Go to
Sending
->Domain
- Click on
Manage SMTP Credentials
button. - Choose a username and click on
Create
button. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->SMTP Config
.
4. How to get Postmark SMTP Credentials?
- Create to your Postmark account. (Create Account)
- Go to
Settings
->Credentials
- Click on
Generate SMTP Credentials
button. - Choose a username and click on
Create
button. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->SMTP Config
.
5. How to get Sendmail SMTP Credentials?
- Create to your Sendmail account. (Create Account)
- Go to
SMTP & API
->SMTP
- Click on
Create a SMTP account
button. - Choose a username and click on
Create
button. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->SMTP Config
.
6. How to get Sendgrid SMTP Credentials?
- Create to your Sendgrid account. (Create Account)
- Go to
Settings
->API Keys
- Click on
Create API Key
button. - Choose a username and click on
Create & View
button. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->SMTP Config
.
Please note that some hosting providers blocks port 25 or 465 in that case you have to change your SMTP email server or contact your hosting provider
NOTE: The /.env
file settings override those of the admin panel.
Note: Don’t forget to change your sender email address in your SMTP Settings
page -> Mail From Address
to match it with an allowed email address of your SMTP server.
7. How to get Gmail SMTP Credentials?
- Create to your Gmail account. (Create Account)
- Go to
Settings
->See all settings
->Accounts and Import
->Other Google Account settings
- Click on
Security
from the left sidebar. - Click on
Less secure app access
and turn it on. - Go to
Settings
->See all settings
->Accounts and Import
->Other Google Account settings
- Click on
Apps with account access
from the left sidebar. - Click on
Manage apps
and click onAllow less secure apps: ON
button. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->Settings
->SMTP
.
Note: Don’t forget to change your sender email address in your SMTP Settings
page -> Mail From Address
to match it with an allowed email address of your SMTP server.
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=your-gmail-username MAIL_PASSWORD=your-gmail-password MAIL_ENCRYPTION=tls
8. How to get cPanel SMTP Credentials?
- Login to your cPanel account.
- Go to
Email
->Email Accounts
- Click on
Create
button. - Choose a username, password and click on
Create
button. - Go to
Email
->Email Accounts
and click onConnect Devices
button. - Copy the SMTP Credentials and paste it in your
.env
file orAdmin Panel
->SMTP Config
.