opencats / OpenCATS

Applicant Tracking System (maintained code base)
http://www.opencats.org
Other
530 stars 245 forks source link

OPENCATS Email Configuration Testing #577

Open sidsingh1001 opened 2 years ago

sidsingh1001 commented 2 years ago

Not able to send email through SMTP

Expected behavior and actual behavior.

I want to use SMTP for sending emails. However when i set Mailmailer to 3 in config file and test configuration it gives me error. Have checked SMTP setting they are fine. Copy them here just in case. /* SMTP Settings. You don't need to worry about this unless MAIL_MAILER is

What version of opencats are you running?

my OPenCats version is 0.9.6

Release or downloaded from Git?

Release downloaded from GIT

WAMP or LAMP?

Godaddy shared hosting LAMP

What version of PHP and MySQL are you running

PHP version is 7.3.32 MySQL version is 5.6.43

RussH commented 2 years ago

Hi,

please can you share the error message in the apache error log?

Also - PHP 7.2 is the maximum tested & supported. MariaDB v10.x (max 10.6) is required rather than MySQL as some defaults have diverged.

Okay, so I just span up a test system and it emails fine - albeit using gmail rather than zoho. This is the gmail config that works; define('MAIL_SMTP_HOST', "smtp.gmail.com"); define('MAIL_SMTP_PORT', 587); define('MAIL_SMTP_AUTH', true); define('MAIL_SMTP_USER', "username@domain"); define('MAIL_SMTP_PASS', "App_PASSWORD"); //Options: '', 'ssl' or 'tls' define('MAIL_SMTP_SECURE', "tls");

sidsingh1001 commented 2 years ago

Hi Russ

Thanks for the response Gmail works. However the candidate once applied isnt able to login again, is there some configuration that i need to do?

Regards Sid

RussH commented 2 years ago

no, this may be a 'feature' of using php 7.3 & MySQL unfortunately. I'd change MySQL to MariaDB first and see. Also check your apache access log and error log when the candidate logs back in to see if there's anything complaining.

ahh, my testing of the career portal didn't include 'allow candidates to register and update their contact information'. I'll check that option and see what's what. Candidates can still apply for jobs without that option of course.

sidsingh1001 commented 2 years ago

Thanks so much for the prompt response. They are ale to apply so life isnt that bad :) My hosting is shared hosting so dont have an option to move to MariaDB unfortunately. But will keep this in mind for sure.

RussH commented 2 years ago

hi @sidsingh1001 it looks like the commit to fix this was just proposed, so it'll be tested and then if it's working as proposed it'll be accepted .