E-mail send problem with php 7.3 Topic is solved

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
Barbazoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 07, 2019 9:22 pm

E-mail send problem with php 7.3

Post by Barbazoo » Mon Jan 07, 2019 9:39 pm

I upgraded my FreeBSD server from php 7.2 to php 7.3 and my Joomla (3.9.1) website's test e-mail function doesn't work anymore. Not working the phpmail, sendmail and smtp too. But my roundcube (php) webmail is working good, so the php and the smtp is working good on my server.
Doesn't support Joomla the php 7.3 yet?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11755
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: E-mail send problem with php 7.3

Post by toivo » Mon Jan 07, 2019 9:57 pm

Joomla runs all right in PHP 7.3.0, and, for example, SMTP mail works all right.

You can debug the exchange of SMTP messages when Joomla establishes the connection with the SMTP server and get the errors logged into a file.

Configure the plugin 'System - Debug' with the following settings:
Allowed Groups: Super Users
Log Priorities: All
Log Categories: mail
Log Almost Everything

Turn on the debug option in Global Configuration. After you send a test email from the Server tab of the configuration page, you can find the log with the SMTP connection requests and responses in the file administrator/logs/everything.php.
Toivo Talikka, Global Moderator

Barbazoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 07, 2019 9:22 pm

Re: E-mail send problem with php 7.3

Post by Barbazoo » Tue Jan 08, 2019 2:54 pm

Seems like Joomla don't connect my localhost SMTP server and I see nothing in the SMTP log and Joomla log folder. I tried 3-4 Joomla site and I installed a new Joomla, but the test e-mail sending is not working.

After delete PHP 7.3 and reinstall PHP 7.2, the e-mail sending work fine on all website.
I deleted PHP 7.2, and installed PHP 7.3 again, the e-mail sending is not working on all website.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11755
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: E-mail send problem with php 7.3

Post by toivo » Tue Jan 08, 2019 3:10 pm

If there is nothing in the log 'everything.php', perhaps the debugging and logging instructions were not followed. Try again and show the SMTP error messages from the log file.
Toivo Talikka, Global Moderator

Barbazoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 07, 2019 9:22 pm

Re: E-mail send problem with php 7.3

Post by Barbazoo » Tue Jan 08, 2019 8:48 pm

Ok, thanx, I found the everything.php:

2019-01-08T20:37:59+00:00 ERROR xxx.xxx.xxx.xxx mail Error in Mail API: Invalid address (setFrom) myvalidemail@address.com
2019-01-08T20:37:59+00:00 WARNING xxx.xxx.xxx.xxx mail Joomla\CMS\Factory::createMailer() could not set the sender data.
2019-01-08T20:37:59+00:00 ERROR xxx.xxx.xxx.xxx mail Error in Mail API: Invalid address (addAnAddress to): myvalidemail@address.com

The xxx.xxx.xxx.xxx is my IP address and the myvalidemail@address.com is the my valid e-mail address :), but I tried the other e-mail addresses and the log error message is the same.
I tried the smtp, phpmail and sendmail, but the log error message is the same.
PHP 7.2 is working, but the PHP 7.3 isn't!

Idea?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11755
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: E-mail send problem with php 7.3

Post by toivo » Wed Jan 09, 2019 8:48 am

Go to System - System Information - PHP Information and check if your PHP 7.3 has the following PHP extensions:
  • Internationalization support (intl)
  • Multibyte support (mbstring)
PHPMailer validates the email addresses using the above extensions. If the two extensions have not been enabled, the validation fails.
Toivo Talikka, Global Moderator

Barbazoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 07, 2019 9:22 pm

Re: E-mail send problem with php 7.3

Post by Barbazoo » Wed Jan 09, 2019 4:29 pm

Thanx for your help!
The intl (Roundcube depend) and mbstring modules are active (phpinfo), but unfortunately the error message don't change! :(

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11755
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: E-mail send problem with php 7.3

Post by toivo » Wed Jan 09, 2019 5:04 pm

That is interesting. Does your email address contain only en-GB alpha and numeric characters or does it have some international characters, too?
Toivo Talikka, Global Moderator

Barbazoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 07, 2019 9:22 pm

Re: E-mail send problem with php 7.3

Post by Barbazoo » Thu Jan 10, 2019 9:17 am

Just english character. No numeric, no international, no dot and no other special character.
PHP 7.2 work, PHP 7.3 doesn't work. I don't no why...

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 11755
Joined: Thu Feb 15, 2007 5:48 am
Location: Suzhou, China

Re: E-mail send problem with php 7.3

Post by toivo » Sun Jan 20, 2019 7:03 pm

I just updated a free launch.joomla.org site to PHP 7.3.0, went to Global Configuration - Server - Mail Settings, sent a test email and received it all right. No issues whatsoever in Joomla 3.9.2.

The mailer selection of the free site is PHP Mail by default. It looks like your issue has more to do with your host, rather than PHP 7.3.0.
Toivo Talikka, Global Moderator

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 8468
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: E-mail send problem with php 7.3

Post by sozzled » Sun Jan 20, 2019 7:16 pm

I think, to find out what's going on here, we need to see the Forum Post Assistant before making further comment. I agree with @toivo: a lot depends on how the site is configured at the webhost.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

Barbazoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Jan 07, 2019 9:22 pm

Re: E-mail send problem with php 7.3

Post by Barbazoo » Thu Mar 07, 2019 9:30 am

The problem is solved!
I upgraded to Joomla 3.9.3 and there is working good!
Thanx your comments!


Post Reply

Return to “General Questions/New to Joomla! 3.x”