?
avatar toivo
toivo
25 Nov 2020

Steps to reproduce the issue

Use the Mailer option 'SMTP'
Global Configuration - Server - Mail Settings - Send Test Mail

Expected result

The test email is sent and received.

Actual result

Message on remote Linux site:
"Warning - The email was sent to xxx@xxx.xx but using PHP Mail as a fallback. You should check that you have received the test email."

Windows localhost site:
Note: Could not start mail function
Error: Test mail could not be sent

System information (as much as possible)

PHP 7.4.12

Additional comments

Test mail used to work in 3.9.22. The Windows 10 workstation also has Joomla 4 Beta6-dev of 25 November, where the mail test works perfectly all right using the same Gmail SMTP settings as the 3.9.23 localhost site.

Forum topic "Mail test: Warning - The email was sent but using PHP Mail as a fallback" at https://forum.joomla.org/viewtopic.php?f=728&t=983212

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar toivo toivo - open - 25 Nov 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Nov 2020
avatar softforge
softforge - comment - 25 Nov 2020

I can confirm this. I took a working 3.9.22 site that used sendmail. I tested the mail and it did the test as usual. I then updated the site to 3.9.23 and tried to send the test mail again and I recieved this
The email was sent to xxx@xxxxxxxxxx.com but using PHP Mail as fallback. You should check that you've received the test email.

The only change was the updating of Joomla from 3.9.22 to 3.9.23

I am using php 7.4.11 on that server

avatar HLeithner
HLeithner - comment - 25 Nov 2020

The reason for this is the new security feature to not display the smtp (and all other) passwords again in the configuration.

This means you have to reenter your password to test it normal operation should work fine.

avatar Fedik
Fedik - comment - 25 Nov 2020

then I think "Send Test Mail" should pick stored PW from config then, automatically, if user send empty

avatar softforge
softforge - comment - 25 Nov 2020

I can confirm its definitely sending via SMTP when private messages etc are being sent but its just falling back on the SMTP test


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31482.

avatar HLeithner
HLeithner - comment - 25 Nov 2020

then I think "Send Test Mail" should pick stored PW from config then, automatically, if user send empty

The feature of "Send Test Mail" is that you can test new configurations without saving them ;-)

avatar Fedik
Fedik - comment - 25 Nov 2020

yeap, but it also used for test existing configuration ;)
It need to support both cases somehow

avatar HLeithner
HLeithner - comment - 25 Nov 2020

of course ;-)

maybe @zero-24 can help with this.

avatar zero-24
zero-24 - comment - 25 Nov 2020

of course ;-)

maybe @zero-24 can help with this.

I can not help with this IIRC Viktor did the initial code? As you know I'm no JS guy.

avatar HLeithner
HLeithner - comment - 25 Nov 2020

jsst remove the password that get send to the ajax request so we need a secure way to get it back for this function

avatar propellerhuvud
propellerhuvud - comment - 26 Nov 2020

I came across this too yesterday, with a slightly different text response after sending the test mail.
"Varning
Mailet har nu skickats till xxx@xxx.xx med PHP Mail. Du bör kontrollera att du har tagit emot testmailet."
-> In English:
"Warning
The email was sent to xxx@xxx.xx using PHP Mail. You should check that you have received the test email."

The Swedish translation mentions nothing about PHP Mail being a fallback?! - and therefore I assume that SMTP wasn't used for proper transport of the test mail, but instead it was sent via PHP Mail.

Many web hosts in Sweden close down sites that are using PHP Mail to prevent spam, therefore sending via SMTP becomes crucial for these clients. Hope this finds a solution in the near future.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31482.

avatar HLeithner
HLeithner - comment - 26 Nov 2020

It's only the test message and not normal messages. We hopefully have a fix for 3.9.24

avatar Fedik
Fedik - comment - 28 Nov 2020

please test #31515

avatar richard67 richard67 - change - 28 Nov 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-11-28 09:36:06
Closed_By richard67
avatar richard67 richard67 - close - 28 Nov 2020
avatar richard67
richard67 - comment - 28 Nov 2020

Closing as having a pull request for this issue. Please test #31515 .

Add a Comment

Login with GitHub to post a comment