Important settings for the app
Few important settings are needed to run the app. Without these settings app can't do some
process.
Delivery settings
Delivery settings is one of the most important settings for the app. Delivery settings mean which settings your app will use to send mail. Most of the mail in app are user invitation mail, password reset mail, Notification mail.
You can setup mail from here: Settings > App Settings > Delivery
App delivery settings will mostly use for user invitation and password reset mail. Also if you choose mail notification channel from notification settings then this will also use for sending notification mail. You can find this settings from App panel navigation menu.
You have four option to set up delivery settings
1. Mailgun
To set up Mailgun you will need a Domain name ( Here is how you can add domain in mailgun), API key, From name, From email.

2. Amazon SES
Amazon SES needed Api Region, Access Key ID, Secret Access key, From name and From email to set up.
You also have to verify the email address which you are using as from email.

3. SMTP
SMTP needed hostname, port, encryption, username, password, From name and From email to set up.

N.B: For Gmail sender email: You have to enable "Less secure app access" from your Google account security settings.
# Click on your Google profile image (Right top side) > Manager your google account > Security (left side) menu > Scroll down and goto "Less secure app access" section > click "Turn on access" > do "Allow less secure apps: ON"


Set up Cron Job
Cron Job is a process that is executed by your hosted server, in the background.
Cron jobs are used for very important tasks such as:
- Email conversation with candidates
- Sending emails
- And much more……
How to setup Cron Job:
We provide you with a command inside the Application setting. You will need to add this command inside your web hosting providers control panel.

If you are using shared hosting from the hosting service provider and have a Cpanel/Control panel. Service Provider: Bluehost, DreamHost, Namecheap, HostGator
Cpanel: (Bluehost, DreamHost, Namecheap, HostGator - Service provider)
Add Cron Job to run scheduler:
- Search for the Cron Job in your cPanel.
- Click and go into the setup page for your Cron job.
- Select “Once per minute” from Common Settings.
- Run this command in to the “Command:” field

/path/to/php
/path-to-your-project/src/artisan
schedule:run >> /dev/null 2>&1
Example:
Root domain:
/usr/local/bin/php
/home/jobpoint/public_html/src/artisan
schedule:run >> /dev/null 2>&1
Subdomain: [If subdomain directory is inside of public_html folder]
/usr/local/bin/php
/jobpoint/public_html/folder_name/src/artisan
schedule:run >> /dev/null 2>&1
If subdomain directory is outside of public_html folder:
/usr/local/bin/php
/home/jobpoint/folder_name/src/artisan
schedule:run >> /dev/null 2>&1
Subfolder:
/usr/local/bin/php
/home/jobpoint/public_html/folder_name/src/artisan
schedule:run >> /dev/null 2>&1

Make sure there are no function that are called by the queue driver, such as, proc_open, pcntl_alarm, pcntl_async_signals, pcntl_signal in the
disable_functions
.If there any you’ll need to remove/enable those functions. Or you can contact with your hosting service provider.
Control Web Panel(CWP):

Hostinger hPanel:
Go to Cron jobs > select “Type: Custom” > Paste the provided command from the application settings without ( >> /dev/null 2>&1) these special characters. hPanel does not support special char in this server.
Command: /usr/local/bin/php /home/jobpoint/public_html/jobpoint/src/artisan schedule:run

DirectAdmin:
Remove the php path which we have provided, and paste the rest of the command.
Command: php /home/jobpoint/public_html/jobpoint/src/artisan schedule:run >> /dev/null 2>&1

Plesk:
Go to Websites & Domains > Scheduled Tasks > Schedule a Task > Select “Task type: Run a PHP script” > Paste “Script path” [project_path] > Arguments schedule:run > Select PHP version [7.4.xx] > Run: select Cron Style & input (*****) > save and run.
project_path: /var/www/xxx/xxxxx.plesk.page/httpdocs/jobpoint/src/artisan
with arguments schedule:run

VPS Server:
If you run the application in VPS server, then configure Supervisor to manage the Laravel queue. Otherwise Cron job doesn’t work. Please follow your service provider documentation to run Supervisor and Cron jobs.
Receiving settings (Email Conversations)
Receiving settings is very important settings to receive mail.
You can setup imap setting from here: Settings > App Settings > Imap setting
Imap settings will mostly use for Candidate conversation through email. When an event is created for candidate and hiring team to get email from candidate system needs to receive these mails.
1. Imap
To set up Imap you will need to set up imap map configuration
- Imap Server ( ex: mail.your_domain.com )
- Imap Port ( ex: 993 )
- Encryption Type ( ex: SSL )
- User ( ex: your_user )
- Password ( ex: your_password )

After setting up the configuration you need to set Cron Job & Scheduler
2. Gmail Imap
To set up Gmail Imap you will need Google Workspace
- Gmail Imap Server ( ex: imap.gmail.com )
- Imap Port ( ex: 993 )
- Encryption Type ( ex: SSL )
- User ( ex: your_email )
- Password ( ex: your_password )
- Enable less secure app
- After setting up the configuration you need to set Cron Job & Scheduler

N.B: For gmail receiver email for Google Workspace: You have to enable "Gmail imap settings" from your Google settings.
# Click on your Google Settings (Right top side) > See all settings > Forwarding and POP/IMAP > Enable settings as per given image below

N.B: For gmail receiver email for Google Workspace: You have to enable "Less secure app access" from your Google account security settings.
# Click on your Google profile image (Right top side) > Manager your google account > Security (left side) menu > Scroll down and goto "Less secure app access" section > click "Turn on access" > do "Allow less secure apps: ON"

