Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error by sending an email report #16375

Closed
selametaydogdu opened this issue Sep 3, 2020 · 1 comment
Closed

Error by sending an email report #16375

selametaydogdu opened this issue Sep 3, 2020 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@selametaydogdu
Copy link

When I try to send an email report, I get the following error message:
An error occurred while sending 'HTML Email Report - 1.yesterday.1.de - uIvIcuoAiEUM17OxEPU0v52JrbeafXgy0H5Fh4nt.html' to recipient@domain.com. Error
was 'Unable to connect via TLS'
But I was able to send an e-mail via telnet, which I also successfully received.

The telnet command is:
telnet ]mailserver} ]port}
ehlo [domain]
mail from:[from]
rcpt to:[to]
data
Subject: This is a test message

Hello.

.
quit

What could be here the problem?

@tsteur
Copy link
Member

tsteur commented Sep 4, 2020

@selametaydogdu do you mind asking this question in our forum? https://forum.matomo.org/

Generally, this should work fine if everything is configured correctly. Here are the options:

[mail]
defaultHostnameIfEmpty = defaultHostnameIfEmpty.example.org ; default Email @hostname, if current host can't be read from system variables
transport = ; smtp (using the configuration below) or empty (using built-in mail() function)
port = ; optional; defaults to 25 when security is none or tls; 465 for ssl
host = ; SMTP server address
type = ; SMTP Auth type. By default: NONE. For example: LOGIN
username = ; SMTP username
password = ; SMTP password
encryption = ; SMTP transport-layer encryption, either 'ssl', 'tls', or empty (i.e., none).

Can you check if everything is configured correctly in your config/config.ini.php file?

In case you haven't, maybe also test through telnet from the Matomo server itself if that works.

BTW: In Matomo 4 (which a first beta release will be available likely in the next 10 days) we have also updated the PHP Mail library which could fix things. But generally things should work if you configure an SMTP.

If things are still not working maybe someone in the forum can help further as we can't really help much with this.

There is also a command ./console core:test-email available within the Matomo directory maybe this can help getting more information too.

@tsteur tsteur closed this as completed Sep 4, 2020
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants