Page 2 of 2

Re: SMTP Connect() Failed - Test Email

Posted: 04 Sep 2018, 15:17
by ChristopherM
Thank you Dveos for your reply and help. I have followed your instructions but am still not able to send emails.

Do you think this might have something to do with the fact that I am asking the system to use SSL while Outlook states that its standard SMTP encryption method is STARTTLS?

Regards

ChristopherM

Re: SMTP Connect() Failed - Test Email

Posted: 06 Sep 2018, 07:14
by dveos
I did see that you could try tls and see if that makes a difference, if that doesn't work I would try different combinations of ssl / tls with authentication set as 'true' too :)

Re: SMTP Connect() Failed - Test Email

Posted: 07 Sep 2018, 12:17
by ChristopherM
Thank you dveos. I will try these out.

Re: SMTP Connect() Failed - Test Email

Posted: 07 Sep 2018, 14:53
by ChristopherM
I have implemented the changes suggested by dveos and RussH and am delighted to say that:

The test email now works

The status change template emails work

Attempting to send emails via the Candidates Home Page 1 List does not work, however this is not an issue as the system enables me to select and download them to a spreadsheet and I can send a manual email from that.

My sincere thanks to RussH and dveos for all your time spent on this and I hope that this will help others who I can see have experienced the same issue.

Re: SMTP Connect() Failed - Test Email

Posted: 28 Oct 2023, 14:37
by easyaspi
Hi,
Obviously I am open to a better solution :D

This may help you ? :
In order to get my email sending I modified ../lib/Mailer.php



case MAILER_MODE_SMTP:
$this->_mailer->isSMTP();
$this->_mailer->Host = MAIL_SMTP_HOST;
$this->_mailer->Port = MAIL_SMTP_PORT;
$this->_mailer->SMTPSecure = MAIL_SMTP_SECURE;

// Modified by andy supress the certificate and domain checks etc
$this->_mailer->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
// End Modify Andy

if (!MAIL_SMTP_SECURE) {
$this->_mailer->SMTPAutoTLS = false;
}

Re: SMTP Connect() Failed - Test Email

Posted: 08 Nov 2023, 13:03
by RussH
Hi Andy,

just to share, I simply use a mailgun account for all my opencats email. Normally free (or very low cost) dependant upon volume.