Related PR #23591
Try to connect to an SMTP server without any SSL/TLS security option turned on
Connection is successful as in Joomla 3.9
Connection fails and doesn't fallback anymore to a new one without a secutiry layer
It's not possible to connect to SMTP server without any SSL/TLS because $SMTPAutoTLS in the PHPMailer class is always true and not managed in any way by the mail class or Joomla options.
Additionally, even SSL/TLS options fail to connect to the SMTP server if enabled.
Joomla 4.0 Alpha 8
This is the result to have removed the following code in the Mail class within the Send function:
try
{
// Try sending with default settings
$result = parent::send();
}
catch (\phpmailerException $e)
{
$result = false;
if ($this->SMTPAutoTLS)
{
/**
* PHPMailer has an issue with servers with invalid certificates
*
* See: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#opportunistic-tls
*/
$this->SMTPAutoTLS = false;
try
{
// Try it again with TLS turned off
$result = parent::send();
}
catch (\phpmailerException $e)
{
// Keep false for B/C compatibility
$result = false;
}
}
}
Labels |
Added:
?
|
Status | New | ⇒ | Discussion |
Category | ⇒ | com_mailto |
Status | Discussion | ⇒ | Information Required |
I'm using an SMTP account on my localhost as usual. Let me know if you need additional informations about the SMTP configuration.
The only way to have it working as in Joomla 3 is settings
public $SMTPAutoTLS = false;
in the PHPMailer.php
I searched for SMTP at CloudAccess, can't find.
I don't know which SMTP you are searching. I'm just talking about a standard SMTP account.
standard SMTP account
Don't know what this mean.
Don't you know what is an SMTP account?
I don't know what you mean by "standard" SMTP-Account, so i searched at CloudAccess.
I mean an SMTP account configured as in the screenshot.
Labels |
Added:
J4 Issue
|
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-05-13 13:19:25 |
Closed_By | ⇒ | wilsonge |
Can you please provide more Details. I can't reproduce this Issue.Mailer use always PHP-Mail, but SMTP is saved in Configuration.