Mailer function won't work
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Mailer function won't work
As per my title my mailer function won't work, I have the latest PHP version but have tried the send email function in the global configuration section.
Tried send via PHP mail it says "could not start mail function" and "Test mail could not be sent"
Tried send via Sendmail and I get "Could not execute: /usr/sbin/sendmail" and "Test mail could not be sent"
Now via SMTP I get "SMTP connect failed https://github.com/PHPMailer/PHPMailer/ ... leshooting" and "Test mail could not be sent"
My PHP version is 7.3.11.
Has anyone any ideas, please not too complicated I am relatively new to the use of JOOMLA
Tried send via PHP mail it says "could not start mail function" and "Test mail could not be sent"
Tried send via Sendmail and I get "Could not execute: /usr/sbin/sendmail" and "Test mail could not be sent"
Now via SMTP I get "SMTP connect failed https://github.com/PHPMailer/PHPMailer/ ... leshooting" and "Test mail could not be sent"
My PHP version is 7.3.11.
Has anyone any ideas, please not too complicated I am relatively new to the use of JOOMLA
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
Email configurations, testing and networking can often be complicated, but here we go:
If you receive only error messages, the mail settings are incorrect. When you select SMTP, use the setting given to you by your host. Many hosts allow you to use only their outgoing SMTP server. If the intended mail server is outside your LAN, different types of configuration need to be done elsewhere.
It is possible to troubleshoot the SMTP connection and get all the details at the SMTP protocol level from the connection attempts. Set the System Debug plugin to log mail requests for Super Users, turn on Debug in the Global Configuration and run the test. The detailed log of the SMTP connection will be written into the file everything.php in the log folder, usually administrator/logs. Post a copy of the log file here for interpretation of the messages.
If you receive only error messages, the mail settings are incorrect. When you select SMTP, use the setting given to you by your host. Many hosts allow you to use only their outgoing SMTP server. If the intended mail server is outside your LAN, different types of configuration need to be done elsewhere.
It is possible to troubleshoot the SMTP connection and get all the details at the SMTP protocol level from the connection attempts. Set the System Debug plugin to log mail requests for Super Users, turn on Debug in the Global Configuration and run the test. The detailed log of the SMTP connection will be written into the file everything.php in the log folder, usually administrator/logs. Post a copy of the log file here for interpretation of the messages.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
OK I think I did that Ok but just got the same message ie
SMTP connect failed https://github.com/PHPMailer/PHPMailer/ ... leshooting
Is that of any use?
SMTP connect failed https://github.com/PHPMailer/PHPMailer/ ... leshooting
Is that of any use?
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Ok just got the one log message;
INFO controller
Checking edit ID com_plugins.edit.plugin.425: 1 Array ( [0] => 425 )
Call Stack
Does that help?
INFO controller
Checking edit ID com_plugins.edit.plugin.425: 1 Array ( [0] => 425 )
Call Stack
Does that help?
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
That is not useful.
Configure the Debug plugin, as described above.
Configure the Debug plugin, as described above.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Ok I think I have done it right now and have 29 messages the first is ;
29 messages logged
DEBUG databasequery
SELECT `id`,`name`,`rules`,`parent_id`
FROM `e3gnq_assets`
WHERE `name` IN ('root.1','com_actionlogs','com_admin','com_ajax','com_akeeba','com_associations','com_banners','com_cache','com_categories','com_checkin','com_chronoforms5','com_config','com_contact','com_content','com_contenthistory','com_cpanel','com_fields','com_finder','com_flexicontact','com_installer','com_jce','com_joomlaupdate','com_languages','com_login','com_mailto','com_media','com_menus','com_messages','com_modules','com_newsfeeds','com_plugins','com_postinstall','com_privacy','com_redirect','com_search','com_sptransfer','com_tags','com_templates','com_users','com_weblinks','com_wrapper')
Call Stack
All the other logs are database queries do I copy all logs ?
29 messages logged
DEBUG databasequery
SELECT `id`,`name`,`rules`,`parent_id`
FROM `e3gnq_assets`
WHERE `name` IN ('root.1','com_actionlogs','com_admin','com_ajax','com_akeeba','com_associations','com_banners','com_cache','com_categories','com_checkin','com_chronoforms5','com_config','com_contact','com_content','com_contenthistory','com_cpanel','com_fields','com_finder','com_flexicontact','com_installer','com_jce','com_joomlaupdate','com_languages','com_login','com_mailto','com_media','com_menus','com_messages','com_modules','com_newsfeeds','com_plugins','com_postinstall','com_privacy','com_redirect','com_search','com_sptransfer','com_tags','com_templates','com_users','com_weblinks','com_wrapper')
Call Stack
All the other logs are database queries do I copy all logs ?
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
Database queries are not related to the mail connection problem. You need to do the following:
Configure the plugin System - Debug using the examples from the two images below.
Select the option 'Debug System' in Global Configuration - System - Debug Settings.
Click 'Send Test Mail' in Global Configuration - Server - Mail Settings.
The details of the SMTP connection and other dialogues are now written to the file administrator/logs/everything.php, including possible error codes. If you need assistance in interpreting the messages, post them here.
Configure the plugin System - Debug using the examples from the two images below.
Select the option 'Debug System' in Global Configuration - System - Debug Settings.
Click 'Send Test Mail' in Global Configuration - Server - Mail Settings.
The details of the SMTP connection and other dialogues are now written to the file administrator/logs/everything.php, including possible error codes. If you need assistance in interpreting the messages, post them here.
You do not have the required permissions to view the files attached to this post.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Many thanks for that and yes my debug set up is as above, but where do I find the
administrator/logs/everything.php. I have the debug console below do I find the logs in there?
Sorry I am completely new this and I may ask questions that seem obvious to most people, but not to me.
administrator/logs/everything.php. I have the debug console below do I find the logs in there?
Sorry I am completely new this and I may ask questions that seem obvious to most people, but not to me.
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Ok did it all again in the De bug console is says zero logged entries? I must be missing something, how do I get to read the logs on my web site?
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
You can download the file administrator/logs/everything.php by using File Manager or FTP, depending on what utilities there are in the cPanel of your host.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
I found a log file it's a text file but too big to copy can I upload it anywhere, here is a snap of the last bit, I'm not sure if it's the right one;
94.4.40.37 - - [18/Nov/2019:17:15:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
185.136.159.26 - - [18/Nov/2019:17:25:45 +0000] "GET /index.php/contact-us HTTP/1.1" 200 25943 "http://blackpoolchess.org.uk/index.php/contact-us" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
185.136.159.26 - - [18/Nov/2019:17:25:45 +0000] "POST /index.php/contact-us HTTP/1.0" 303 430 "http://blackpoolchess.org.uk/index.php/contact-us" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
185.136.159.26 - - [18/Nov/2019:17:25:46 +0000] "GET /index.php/contact-us HTTP/1.0" 200 26626 "http://blackpoolchess.org.uk/contact-us" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
40.77.167.169 - - [18/Nov/2019:17:26:19 +0000] "GET /index.php?catid=0&id=35 HTTP/1.1" 200 28179 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
94.4.40.37 - - [18/Nov/2019:17:29:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
157.55.39.44 - - [18/Nov/2019:17:42:16 +0000] "GET /robots.txt HTTP/1.1" 200 1130 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
207.46.13.126 - - [18/Nov/2019:17:42:38 +0000] "GET /index.php/1988-results HTTP/1.1" 200 23593 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
94.4.40.37 - - [18/Nov/2019:17:43:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
185.86.164.110 - - [18/Nov/2019:17:51:50 +0000] "GET /administrator/index.php?option=com_login HTTP/1.1" 200 5754 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
94.4.40.37 - - [18/Nov/2019:17:57:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
Sorry I'm not much use don't quite understand how to use FTP, I got this from my hosts web site.
94.4.40.37 - - [18/Nov/2019:17:15:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
185.136.159.26 - - [18/Nov/2019:17:25:45 +0000] "GET /index.php/contact-us HTTP/1.1" 200 25943 "http://blackpoolchess.org.uk/index.php/contact-us" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
185.136.159.26 - - [18/Nov/2019:17:25:45 +0000] "POST /index.php/contact-us HTTP/1.0" 303 430 "http://blackpoolchess.org.uk/index.php/contact-us" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
185.136.159.26 - - [18/Nov/2019:17:25:46 +0000] "GET /index.php/contact-us HTTP/1.0" 200 26626 "http://blackpoolchess.org.uk/contact-us" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
40.77.167.169 - - [18/Nov/2019:17:26:19 +0000] "GET /index.php?catid=0&id=35 HTTP/1.1" 200 28179 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
94.4.40.37 - - [18/Nov/2019:17:29:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
157.55.39.44 - - [18/Nov/2019:17:42:16 +0000] "GET /robots.txt HTTP/1.1" 200 1130 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
207.46.13.126 - - [18/Nov/2019:17:42:38 +0000] "GET /index.php/1988-results HTTP/1.1" 200 23593 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
94.4.40.37 - - [18/Nov/2019:17:43:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
185.86.164.110 - - [18/Nov/2019:17:51:50 +0000] "GET /administrator/index.php?option=com_login HTTP/1.1" 200 5754 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
94.4.40.37 - - [18/Nov/2019:17:57:14 +0000] "GET /index.php/component/ajax/?format=json HTTP/1.1" 200 514 "http://www.blackpoolchess.org.uk/index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"
Sorry I'm not much use don't quite understand how to use FTP, I got this from my hosts web site.
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
That is not the right file. Does the cPanel provided by your host have a utility called File Manager in the section Files?
Toivo Talikka, Global Moderator
-
- Joomla! Enthusiast
- Posts: 100
- Joined: Thu Jun 21, 2012 7:17 am
Re: Mailer function won't work
Hi bro,
Are you sure PHP mail function works ? ( you can run test by PHP mail script directly )
And did you try smtp, how is the result ?
Mail issues mostly come from server itself.
Are you sure PHP mail function works ? ( you can run test by PHP mail script directly )
And did you try smtp, how is the result ?
Mail issues mostly come from server itself.
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
As above both PHP and sendmail don't work either.petehurn wrote: ↑Fri Nov 15, 2019 12:01 pmAs per my title my mailer function won't work, I have the latest PHP version but have tried the send email function in the global configuration section.
Tried send via PHP mail it says "could not start mail function" and "Test mail could not be sent"
Tried send via Sendmail and I get "Could not execute: /usr/sbin/sendmail" and "Test mail could not be sent"
Now via SMTP I get "SMTP connect failed https://github.com/PHPMailer/PHPMailer/ ... leshooting" and "Test mail could not be sent"
My PHP version is 7.3.11.
Has anyone any ideas, please not too complicated I am relatively new to the use of JOOMLA
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: Mailer function won't work
@petehurn: did you see what @toivo wrote above? Do you think you could answer his question, please?
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: Mailer function won't work
@petehurn: yes, FTP may be of some use (even though it's not quite what @toivo asked). Do you know how to use FTP?
Does namesco.net contain the files used by "blackpoolchess"?
I mean, what is the domain name of the website that's having problems with the mailer function? Is the domain name "namesco" or is it "blackpoolchess"?
Does namesco.net contain the files used by "blackpoolchess"?
I mean, what is the domain name of the website that's having problems with the mailer function? Is the domain name "namesco" or is it "blackpoolchess"?
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
I don't know how to use FTP and the domain problem is only with the Blackpoolchess web site I have another web site that works just fine on the same host.sozzled wrote: ↑Tue Nov 19, 2019 8:26 pm@petehurn: yes, FTP may be of some use (even though it's not quite what @toivo asked). Do you know how to use FTP?
Does namesco.net contain the files used by "blackpoolchess"?
I mean, what is the domain name of the website that's having problems with the mailer function? Is the domain name "namesco" or is it "blackpoolchess"?
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: Mailer function won't work
OK. Then knowing the FTP address isn't going to help you (especially if the FTP site doesn't allow you access to the "blackpoolchess" files). So, getting back to @toivo's question ...
... do you have access to the [webhost] cPanel (not the Joomla backend, the webhost's cPanel which is a different thing)?
... do you have access to the [webhost] cPanel (not the Joomla backend, the webhost's cPanel which is a different thing)?
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Yes I can get to the c panel of names.co.uksozzled wrote: ↑Tue Nov 19, 2019 9:03 pmOK. Then knowing the FTP address isn't going to help you (especially if the FTP site doesn't allow you access to the "blackpoolchess" files). So, getting back to @toivo's question ...
... do you have access to the [webhost] cPanel (not the Joomla backend, the webhost's cPanel which is a different thing)?
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
If your host has given you cPanel and the icon is called File Manager, that is the right utility.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Ok I have found some files that are listed under blackpoolchess.org.uk/logs
blackpoolchess.org.uk / logs / ( 4 files & directories )
Name
Size
Date
Permissions
Check All:
error.log
0 B
Wed 20 Nov 01:53
-rw-rw----0660
error.log.1
170 B
Tue 19 Nov 07:17
-rw-rw----0660
web.log
308 kB
Thu 21 Nov 00:14
-rw-rw----0660
web.log.1
392 kB
Wed 20 Nov 01:13
-rw-rw----0660
When I download all files only 1 can be read so how can I use them?
blackpoolchess.org.uk / logs / ( 4 files & directories )
Name
Size
Date
Permissions
Check All:
error.log
0 B
Wed 20 Nov 01:53
-rw-rw----0660
error.log.1
170 B
Tue 19 Nov 07:17
-rw-rw----0660
web.log
308 kB
Thu 21 Nov 00:14
-rw-rw----0660
web.log.1
392 kB
Wed 20 Nov 01:13
-rw-rw----0660
When I download all files only 1 can be read so how can I use them?
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
The error log looks like this;
[2019-11-19 06:23:30] [authz_core:error] [client 5.9.66.153:0] AH01630: client denied by server configuration: /mnt/web/ns/std/6/3/6/blackpoolchess.org.uk/web/contact-us
Again means nothing to me.
[2019-11-19 06:23:30] [authz_core:error] [client 5.9.66.153:0] AH01630: client denied by server configuration: /mnt/web/ns/std/6/3/6/blackpoolchess.org.uk/web/contact-us
Again means nothing to me.
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
That log file comes from Apache, not Joomla.
Go to System - Global Configuration. In the System tab, under System Settings, check the contents of 'Path to Log Folder'. That is the folder where you can find the file everything.php.
Go to System - Global Configuration. In the System tab, under System Settings, check the contents of 'Path to Log Folder'. That is the folder where you can find the file everything.php.
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Well I finally have found the file in question so what am I looking for because its a big file?
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
Rename or delete the file logs/everything.php and repeat the test from Global Configuration - Server - Mail Settings and the new file will be smaller.
Look for lines similar to the following, from the start of the SMTP connection request:
Look for lines similar to the following, from the start of the SMTP connection request:
Code: Select all
2019-11-23T12:34:46+00:00 ERROR ::1 mail Error in Mail API: Connection: opening to localhost:25, timeout=300, options=array (
)
2019-11-23T12:34:50+00:00 ERROR ::1 mail Error in Mail API: Connection failed. Error #2: stream_socket_client(): unable to connect to localhost:25 (No connection could be made because the target machine actively refused it.
) [C:\www\joomlatest\libraries\vendor\phpmailer\phpmailer\class.smtp.php line 298]
2019-11-23T12:34:50+00:00 ERROR ::1 mail Error in Mail API: SMTP ERROR: Failed to connect to server: No connection could be made because the target machine actively refused it.
(10061)
2019-11-23T12:34:50+00:00 ERROR ::1 mail Error in Mail API: SMTP connect failed https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Toivo Talikka, Global Moderator
- toivo
- Joomla! Master
- Posts: 17427
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Mailer function won't work
The lines from the log file everything.php you sent me show that the TCP port 25 on the web server does not accept the connection request from PHPMailer when Joomla tries to create a connection at the start of the SMTP dialogue (IP address redacted).
Send the extract of the SMTP connection attempt from the log to your host so that they can sort out the configuration of their mail server.
Send the extract of the SMTP connection attempt from the log to your host so that they can sort out the configuration of their mail server.
Code: Select all
2019-11-23T23:21:25+00:00 ERROR [ IP address ] mail Error in Mail API:
Connection: opening to localhost:25, timeout=300, options=array (
)
2019-11-23T23:21:25+00:00 ERROR [ IP address ] mail Error in Mail API:
Connection failed. Error #2: stream_socket_client(): unable to connect to
localhost:25 (Connection refused)
[/var/www/web/libraries/vendor/phpmailer/phpmailer/class.smtp.php line 298]
2019-11-23T23:21:25+00:00 ERROR [ IP address ] mail Error in Mail API: SMTP
ERROR: Failed to connect to server: Connection refused (111)
2019-11-23T23:21:25+00:00 ERROR { IP address ] mail Error in Mail API: SMTP
connect failed https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Nov 15, 2019 11:49 am
Re: Mailer function won't work
Many thanks for your help I'll try what you suggest.