• Resolved volkhardv

    (@volkhardv)


    Hello,
    i′m using the plugn “Matomo Analytics – Ethical Stats. Powerful Insights.” V1.2.0 and want to use the mail-report functionality.
    i receive a mail – but not with an attachment. instead the is a body-text like (i′m using Outlook as a client):

    This is a message in Mime Format. If you see this, your mail reader does not support this format.

    –=75fc867fd90fc8389c9724ab18a57f2
    Content-Type: text/html; charset=f-8
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    <html style=”background-color:#edecec”>

    <head>
    <meta charset=”utf-8″>
    <meta name=”robots” content=”noindex,nofollow”>
    <meta name=”generator” content=”Matomo Analytics”>
    </head>

    <body style=”color:#212121;font-family:-apple-system, BlinkMacSystemFont, ‘Segoe UI’, Roboto, Oxygen-Sans, Cantarell, ‘Helvetica Neue’, sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);”>

    <table style=”width:100%; background-color: #3450A3; color: #fff; padding:10px 0; margin: 0 0 25px 0; height:64px;”>
    <tr>
    <td>

    Matomo, Quelloffene Webanalytik

    </td>
    <td align=”right”>

    Dashboard

    </td>
    </tr>
    </table>

    <div style=”margin:0 20px;”>

    <h2 style=’color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif; color:#37474f; line-height:30px; margin:25px 0 15px 0;’>
    Hallo,
    </h2>

    <p style=’font-size:15px;line-height:24px;margin:0 0 16px;color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif;’>
    Sie finden Ihren w?chentlich Bericht für Demo Obi Internet in der angeh?ngten Datei.
    <br />Bericht Demo Obi Internet – Donnerstag, 27. August 2020
    <br />Zeitspanne: Donnerstag, 27. August 2020
    <br />Gesendet von https://customer.vogeler-ag.de/obi/internet/wp-content/plugins/matomo/app/
    </p>

    <hr style=” border: 0; margin-top: 50px; height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));”>

    <p style=’font-size:15px;line-height:24px;margin:0 0 16px;color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif;text-align:center;font-size:13px; color:#666;padding-top:30px;margin-bottom:0;’>
    Powered by
    Matomo Analytics
    <br />
    Die führende Open-Source-Analyseplattform, die Ihre Privatsph?re achtet.
    </p>

    <p style=’font-size:15px;line-height:24px;margin:0 0 16px;color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif;text-align:center;font-size:13px; color:#666;’>Um sich von diesem Bericht abzumelden, klicken Sie bitte folgenden Link: Abmelden.</p>

    </div>
    </body>
    </html>

    –=75fc867fd90fc8389c9724ab18a57f2
    :
    :
    –=75fc867fd90fc8389c9724ab18a57f2–

    when i configure another smtp-Server i get an “data not accepted”-error.

    can anyone help?

    best regards

    Volkhard

    • This topic was modified 4 years, 3 months ago by volkhardv.
Viewing 15 replies - 1 through 15 (of 29 total)
  • Plugin Author Thomas

    (@tsteur)

    Hi Volkhard,

    Sorry about that. I’ll do my best to get this sorted for you. Which version of outlook are you using? Do you maybe have a possibility to also test another email client if it’s working there? I’m basically wondering if for some reason the mail was sent not correctly or whether outlook does actually not support this feature.

    Maybe you could try and send a report to us? If that’s possible this would be the steps:

    In the Matomo Admin go to “Email Reports”. Edit the report you already set up by the looks and add our email wordpress at matomo.org . Then save and click on “Send report now” in the overview where all the created reports are being listed. Then you can remove our email address again.

    Thread Starter volkhardv

    (@volkhardv)

    Hello Thomas,

    thanks for your help!

    i′m using Outlook 365 – in an Standard configuration.
    i just send you an report to wordpress at matomo.org

    best regards

    Volkhard

    Plugin Author Thomas

    (@tsteur)

    Thanks for sending the report to us. Quick update: It looks fine on our email client so it might be an issue with Office 365. I will need to look into this tomorrow or so. Do you mind if I send you a report to your email from our Matomo just to confirm it won’t work either when we send a report? I should have your email address from the report you sent to us.

    Thread Starter volkhardv

    (@volkhardv)

    Hello Thomas,

    thanks for your support!
    Yes – you can send an sample Report to info @ vogeler-ag.de

    best regards

    Volkhard

    Thread Starter volkhardv

    (@volkhardv)

    Hello Thomas,

    thanks your eMail-Report is received. i think this report is an html-email report.
    please can you provide an PDF-Report with eMail – only to be safe?

    best regards

    Volkhard

    Plugin Author Thomas

    (@tsteur)

    Just sent a PDF report Volkhard. Be great if you could let me know if it worked or if you see the same message.

    Thread Starter volkhardv

    (@volkhardv)

    Hello Thomas,
    thanks – i can get the PDF-attachment normally in Outlook …

    So maybe there is a platform specific problem on WordPress, php, os?

    best regards

    Volkhard

    Plugin Author Thomas

    (@tsteur)

    Thanks @volkhardv

    Could you send us your Matomo System Report? Either as a comment here (it should be automatically anonymized) or by email to wordpress at matomo.org ?

    I will then try to reproduce things. However, it might be difficult since I don’t have an Office 365 account.

    Do you know if you are using a special plugin for sending mails in your WordPress?

    Thread Starter volkhardv

    (@volkhardv)

    Hello Thomas,

    Here you are:
    # Matomo

    * Matomo Pluginversion: 1.2.0
    * Config existiert und ist beschreibbar.: Ja (“$ABSPATH/wp-content/uploads/matomo/config/config.ini.php” )
    * JS Tracker existiert und ist beschreibbar.: Ja (“$ABSPATH/wp-content/uploads/matomo/matomo.js” )
    * Plugin-Verzeichnisse: Yes ([{“pluginsPathAbsolute”:”D:\\Inetpub\\Customer.Vogeler-ag.de\\Obi\\internet\\wp-content\\plugins\\matomo\/plugins”,”webrootDirRelativeToMatomo”:”..\/”}])
    * Tmp-Verzeichnis schreibbar: Yes ($ABSPATH/wp-content/cache/matomo)
    * Matomo-Version: 3.14.0
    * Matomo Blog idSite: 1
    * Installierte Matomo-Version: 1.2.0 (Install date: 2020-08-08 19:40:28)

    ## Endpoints

    * Matomo JavaScript Tracker URL: ($site_url/wp-content/uploads/matomo/matomo.js)
    * Matomo JavaScript Tracker – WP Rest API: ($site_url/wp-json/matomo/v1/hit/)
    * Matomo HTTP Tracking API: ($site_url/wp-content/plugins/matomo/app/matomo.php)
    * Matomo HTTP Tracking API – WP Rest API: ($site_url/wp-json/matomo/v1/hit/)

    ## Crons

    * Server-Zeit: 2020-09-02 13:06:49
    * Blog-Zeit: 2020-09-02 15:06:49 (Die nachfolgenden Daten werden in der Blog-Zeitzone angezeigt)
    * Sync users & sites: Next run: 2020-09-01 19:40:21 (-19 Stunden 26 Minuten) ( Last started: 2020-09-01 08:00:55 (-1 Tage 7 Stunden). Last ended: 2020-09-01 08:00:56 (-1 Tage 7 Stunden). Interval: daily)
    * Archive: Next run: 2020-09-02 15:40:21 (33 Minuten 32s) ( Last started: 2020-09-02 15:05:55 (-54 s). Last ended: 2020-09-02 15:06:18 (-31 s). Interval: hourly)
    * Update GeoIP DB: Next run: 2020-09-07 19:40:21 (5 Tage 4 Stunden) ( Last started: 2020-08-08 19:42:24 (-24 Tage 19 Stunden). Last ended: 2020-08-08 19:42:26 (-24 Tage 19 Stunden). Interval: matomo_monthly)

    ## Vorgeschriebene Prüfungen

    * PHP-Version >= : ok
    * PDO Erweiterung: ok
    * MYSQLI Erweiterung: ok
    * Weitere erforderliche Anforderungen: ok
    * Erforderliche Funktionen: ok
    * Ben?tigte PHP Konfiguration (php.ini): ok
    * Verzeichnisse mit Schreibzugriff: ok
    * Verzeichnisse mit Schreibzugriff auf Tag Manager: ok

    ## Optionale Prüfungen

    * Tracker-Status: ok
    * Speicherlimit: ok
    * Zeitzone: ok
    * ?ffnen einer URL: ok
    * PageSpeed deaktiviert: ok
    * GD > 2.x + Freetype (graphics): ok
    * Andere Erweiterungen: ok
    * Andere Funktionen: ok
    * Dateisystem: ok
    * Archiv Cron: ok
    * Letzter erfolgreicher Abschluss der Archivierung: ok
    * Warning Maximale Packetgr??e: warning (Es wird empfohlen die ‘max_allowed_packet’ Gr??e in Ihrer MySQL Datenbank auf mindestens 64MB zu erh?hen. Aktuell ist 4MB eingestellt. )
    * Standorterkennung: ok
    * Update über HTTPS: ok
    * Schreibbarer JavaScript-Tracker (“/matomo.js”): ok
    * Supports Async Archiving: No
    * Location provider ID: geoip2php
    * Location provider available: Yes
    * Location provider working: Yes
    * Had visit in last 5 days: Yes

    ## Matomo Settings

    * Track mode: default
    * Track codeposition: footer
    * Track api endpoint: default
    * Track js endpoint: default
    * Version history: 1.2.0
    * Core version: 3.14.0
    * Last tracking settings update: 1597078696
    * Last settings update: 1597078696
    * Disable cookies: Yes
    * Mail history: 2020-08-31 06:21:07, 2020-08-31 06:21:06, 2020-08-31 04:36:28

    ## Logs

    * Keine:

    # WordPress

    * Home URL: $site_url
    * Site URL: $site_url
    * WordPress Version: 5.5
    * Number of blogs: 1
    * Multisite Enabled: No
    * Network Enabled: No
    * WP_DEBUG: Yes
    * WP_DEBUG_DISPLAY: Yes
    * WP_DEBUG_LOG: d:\temp\wp_obiinternet.log
    * DISABLE_WP_CRON: –
    * FORCE_SSL_ADMIN: Yes
    * WP_CACHE: No
    * CONCATENATE_SCRIPTS: –
    * COMPRESS_SCRIPTS: –
    * COMPRESS_CSS: –
    * ENFORCE_GZIP: –
    * WP_LOCAL_DEV: –
    * DIEONDBERROR: –
    * WPLANG: –
    * ALTERNATE_WP_CRON: –
    * WP_CRON_LOCK_TIMEOUT: 60
    * WP_DISABLE_FATAL_ERROR_HANDLER: –
    * Permalink Structure: /%postname%/
    * Possibly uses symlink: Yes
    * Compatible content directory: Yes

    # WordPress Plugins

    * 3D FlipBook : Dflip Lite: 1.7.3.6
    * 10WEB manager: 1.2.96
    * Advanced Custom Fields: 5.9.0
    * Akismet Anti-Spam: 4.1.6
    * All In One SEO Pack: 3.7.0
    * Broken Link Checker: 1.11.14
    * Custom Post Type UI: 1.8.0
    * Duplicate Page: 4.3
    * Events Manager: 5.9.8.1
    * Form Maker Pro: 2.13.40
    * Form Maker Webhooks: 1.0.4
    * Gutenberg Post Blocks: 1.2.5
    * List category posts: 0.83.1
    * Log Emails: 1.3.1
    * Matomo Analytics – Ethical Stats. Powerful Insights.: 1.2.0
    * Post Expirator: 2.4.0.1
    * Post Grid by PickPlugins: 2.0.70
    * Post Type Switcher: 3.2.0
    * Query Monitor: 3.6.4
    * Real Media Library: 4.9.4
    * Service Box: 1.3.9
    * Slider Revolution: 6.2.17
    * The Post Grid: 2.3.4
    * UpSolution Core: 7.8.4
    * WOO Product Table: 2.6.1
    * WPBakery Page Builder: 6.3.0
    * WP Google Maps: 8.0.26
    * WP Google Maps – Pro Add-on: 8.0.34
    * WP Mail SMTP: 2.3.1
    * WP News and Scrolling Widgets: 4.2.2
    * WP Table Builder: 1.2.6
    * Active Plugins: 19 (10web-manager 3d-flipbook-dflip-lite advanced-custom-fields all-in-one-seo-pack broken-link-checker custom-post-type-ui duplicate-page form-maker-webhooks form-maker js_composer log-emails matomo post-expirator post-type-switcher real-media-library us-core wp-google-maps-pro wp-google-maps wp-mail-smtp)

    # Server

    * Server Info: Microsoft-IIS/10.0
    * PHP OS: WINNT
    * PHP Version: 7.3.5
    * PHP SAPI: cgi-fcgi
    * PHP Binary Name: php-cgi.exe
    * Timezone: UTC
    * WP timezone: Europe/Berlin
    * Locale: de_DE
    * User Locale: de_DE
    * Memory Limit: 256M (At least 128MB recommended. Depending on your traffic 256MB or more may be needed.)
    * WP Memory Limit: 40M
    * WP Max Memory Limit: 256M
    * Time: 1599052010
    * Max Execution Time: 240
    * Max Post Size: 64M
    * Max Upload Size: 67108864
    * Max Input Vars: 1500
    * Disabled PHP functions: No
    * zlib.output_compression is off: Yes
    * Curl Version: 7.64.0, OpenSSL/1.1.1b
    * Suhosin installed: No

    # Database

    * MySQL Version: 5.7.17
    * Mysqli Connect: Yes
    * Force MySQL over Mysqli: No
    * DB Prefix: wp_
    * DB CHARSET: utf8mb4
    * DB COLLATE:
    * SHOW ERRORS: Yes
    * SUPPRESS ERRORS: No
    * Uses Socket: No
    * Uses IPv6: No
    * Matomo tables found: 65
    * Matomo users found: 2
    * Matomo sites found: 1
    * Erforderliche Berechtigungen: OK

    # Browser

    * Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19041
    * Language: de-de,de

    i use the WP Mail SMTP Plugin for sending eMails.

    best regrads

    Volkhard

    Plugin Author Thomas

    (@tsteur)

    Thanks @volkhardv

    I have now set up the same plugins including WP Mail SMTP. I connected an SMTP and are now sending mails through this plugin. In internal tests to our mails things still worked correctly. I was so free to send you another report from my local installation. Can you check if that mail works for you as well? You might also need to check the spam folder just in case it went in there.

    Sorry it’s taking so long. Because I don’t have office 365 it takes a bit to figure out what might cause the problem.

    Thread Starter volkhardv

    (@volkhardv)

    Hello Thomas,

    this Incoming mail has no pdf – instead the same as my Symptoms:
    This is a message in Mime Format. If you see this, your mail reader does not support this format.

    
    --=d596e20af2054171fe73f981b4d66f3
    Content-Type: text/html; charset=f-8
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    
    <html style="background-color:#edecec">
    
    <head>
        <meta charset="utf-8">
        <meta name="robots" content="noindex,nofollow">
        <meta name="generator" content="Matomo Analytics">
    </head>
    
    <body style="color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif; line-height: 24px; margin:0 auto; max-width:1000px; background-color:rgb(255, 255, 255);box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.75);">
    
    <a></a>
    
    <table style="width:100%; background-color: #3450A3; color: #fff; padding:10px 0; margin: 0 0 25px 0; height:64px;">
        <tr>
            <td>
                <a rel="noreferrer noopener" target="_blank" href="https://wpsingle.matomo/wp-content/plugins/matomo/app/">
                                        <img src="https://wpsingle.matomo/wp-content/plugins/matomo/app//plugins/Morpheus/images/logo-email.png" height="30px" width="auto" alt="Matomo, Quelloffene Webanalytik" />
                                </a>
            </td>
            <td align="right">
                            <a title="Zeige Webanalytik Berichte für WP Single." target="_blank" href="https://wpsingle.matomo/wp-content/plugins/matomo/app/index.php?date=2020-09-02&module=CoreHome&idSite=1&period=week&action=redirectToCoreHomeIndex" rel="noopener noreferrer">
                    Dashboard
                </a>
                        </td>
        </tr>
    </table>
    
    <div style="margin:0 20px;">
    
        <h2 style='color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif; color:#37474f; line-height:30px; margin:25px 0 15px 0;'>
            Hallo,
        </h2>
    
        <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif;'>
                    Sie finden Ihren w?chentlich Bericht für WP Single in der angeh?ngten Datei.
                    <br />Bericht WP Single - Mittwoch, 2. September 2020
            <br />Zeitspanne: Mittwoch, 2. September 2020
            <br />Gesendet von https://wpsingle.matomo/wp-content/plugins/matomo/app/
        </p>
    
        
        
        <hr style=" border: 0; margin-top: 50px;  height: 1px; background-image: linear-gradient(to right, rgba(231, 231, 231, 0), rgba(231, 231, 231, 1), rgba(2311, 2311, 231, 0));">
    
        <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif;text-align:center;font-size:13px; color:#666;padding-top:30px;margin-bottom:0;'>
            Powered by
            <a rel="noreferrer" href="https://matomo.org/" title="Matomo Analytics">Matomo Analytics</a>
            <br />
            Die führende Open-Source-Analyseplattform, die Ihre Privatsph?re achtet.
        </p>
    
            <p style='font-size:15px;line-height:24px;margin:0 0 16px;color:#212121;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, 'Helvetica Neue', sans-serif;text-align:center;font-size:13px; color:#666;'>Um sich von diesem Bericht abzumelden, klicken Sie bitte folgenden Link: <a href="https://wpsingle.matomo/wp-content/plugins/matomo/app/index.php?module=ScheduledReports&action=unsubscribe&token=36b1b0950434ae89362ad23ea856b1f07bdd0f0e9ac8e193278bae6a414d8b9cf17440447a415d0d417e543984fcff267fa6">Abmelden</a>.</p>
    
    </div>
    </body>
    </html>
    :
    :

    best regards

    Volkhard

    • This reply was modified 4 years, 2 months ago by volkhardv.
    Thread Starter volkhardv

    (@volkhardv)

    Hello Thomas,

    i tried another mail-Client (Standard-Mail from Win10) with the same result. What Mail-Clent you are using?

    best regards

    Volkhard

    • This reply was modified 4 years, 2 months ago by volkhardv.
    Plugin Author Thomas

    (@tsteur)

    @volkhardv I have been making some progress after comparing the raw data of the sent email with WP Mail SMTP and without.

    For some reason, WP Mail SMTP seems to be sending the content type multipart header twice. First correct, and then wrong.

    
    X-Mailer: WPMailSMTP/Mailer/smtp 2.3.1	
    Subject: Bericht matomo.org - Sonntag, 6. September 2020	
    To: XXXXX	
    Date: Mon, 07 Sep 2020 00:59:34 +0000	
    Content-Transfer-Encoding: quoted-printable	
    Content-Disposition: inline
    Content-Type: multipart/mixed; boundary="=_b6b583db8517f04c97054e73b519e750"	
    MIME-Version: 1.0	
    Content-Type: multipart/mixed; charset=UTF-8
    
    --=_b6b583db8517f04c97054e73b519e750
    Content-Type: text/html; charset=utf-8
    

    It should look eg like this:

    
    Date: Mon, 07 Sep 2020 01:06:07 +0000
    Content-Type: multipart/mixed; boundary="=_d5ab96fc034189f00986380fc6767415"
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    MIME-Version: 1.0
    Message-Id: <...>
    
    --=_d5ab96fc034189f00986380fc6767415
    Content-Type: text/html; charset=utf-8
    

    I’m assuming that most email clients are able to still handle this case but not all. Eg Office 365 might have problems with this.

    I wonder if with this information WP Mail SMTP plugin developers could investigate what is going on. The header we’re passing to wp_mail is

    
    From: Matomo Analytics <[email protected]>
    Subject: Bericht WP Single - Sonntag, 6. September 2020
    Reply-To: root <[email protected]>
    To: [email protected]
    Date: Mon, 07 Sep 2020 01:14:14 +0000
    Content-Type: multipart/mixed;
     boundary="=_f46657f72ef401aa1116d51b913469a0"
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    MIME-Version: 1.0
    

    The same problems also seems to happen when sending this as header:

    
    From: Matomo Analytics <[email protected]>
    Subject: Bericht WP Single - Sonntag, 6. September 2020
    Reply-To: root <[email protected]>
    To: [email protected]
    Date: Mon, 07 Sep 2020 01:14:14 +0000
    Content-Type: multipart/mixed; boundary="=_f46657f72ef401aa1116d51b913469a0"
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    MIME-Version: 1.0
    

    Where there is no newline in the content type header (see change in https://github.com/matomo-org/wp-matomo/compare/develop…wpmailstmpnonewline?quick_pull=1 )

    This resulted in WP Mail SMTP sending

    
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline
    Content-Type: multipart/mixed; boundary="=_8212204be310bf9d8a1ca054755ae8f9"
    MIME-Version: 1.0
    Content-Type: multipart/mixed; charset=
    
    Thread Starter volkhardv

    (@volkhardv)

    Hi THomas,
    thanks for your extra ordinary analysis!

    can you recommend another plugin for sending eMails?

    best regards

    Volkhard

    Plugin Author Thomas

    (@tsteur)

    @volkhardv I was trying various different SMTP plugins to see if they all have the same issue and this might be the case. It’s possible the problem is with the underlying PHPMailer used in WordPress and I’m quite certain this used to work nicely in WP 5.4 but maybe they introduced some regressions there with WP5.5. It’s a bit hard to say for me though since I’m not 100% sure if what I’m guessing is actually the issue (as I don’t have an Office365 email account).

    Are you familiar with editing files in WordPress? Any chance you could edit the file in wp-content/plugins/matomo/app/classes/WpMatomo/Email.php and add a newline similar to what is shown here? https://github.com/matomo-org/wp-matomo/pull/344/files If you are familiar with this be great to make the change and see if this changes anything.

    It might be generally a rare issue since it seems most email clients don’t seem to have an issue except office 365 so far.

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘mail without attachment while sending Matomo-report’ is closed to new replies.