Antwort schreiben

Schreiben Sie hier Ihren Beitrag

Click in the dark area of the image to send your post.

Zurück

Übersicht (Neuester Beitrag zuerst)

CPSC
2021-11-07 18:59:33

drlecter schrieb:

Habt ihr nun den Absender als Konto in der Config hinterlegt?
Als MX für cps... kommt der Strato Server zurück. Ich sehe keinen SPF Record (wenn mxtoolbox nicht falsch ist).
Warum versendet pennywize@ die Mails wenn der Absender info@... ist? Das haben Mailserver oft nicht gern. Gmail (und auch Hotmail) machen da oft gern Probleme.

Danke für die Hausaufgabe(n), das müssen und werden wir tatsächlich mal prüfen.

drlecter
2021-11-07 18:42:56

Habt ihr nun den Absender als Konto in der Config hinterlegt?
Als MX für cps... kommt der Strato Server zurück. Ich sehe keinen SPF Record (wenn mxtoolbox nicht falsch ist).
Warum versendet pennywize@ die Mails wenn der Absender info@... ist? Das haben Mailserver oft nicht gern. Gmail (und auch Hotmail) machen da oft gern Probleme.

CPSC
2021-11-07 18:35:48

drlecter schrieb:

Nutzt ihr eine SMTP Config (in z.B. config_default.inc.php)? Ohne einen Grund (sollte bei den Headern stehen, wo das nicht geht) kann man da nicht viel machen. Wenn ihr keine Daten eingetragen habt, dann kann ggf. ein falscher Absender usw. genommen werden.

Absender ist info@cps-c.net
läuft dann über Strato und wird dann von pennywize@pennywize.org versendet.

Es findet also kein unsicherer Versand statt.
Sehe es aber grade. Es scheint mit den Thumbnails zu tun zu haben, dass manche Email-Provider die nicht so gern sehen. =)

drlecter
2021-11-07 18:27:00

Nutzt ihr eine SMTP Config (in z.B. config_default.inc.php)? Ohne einen Grund (sollte bei den Headern stehen, wo das nicht geht) kann man da nicht viel machen. Wenn ihr keine Daten eingetragen habt, dann kann ggf. ein falscher Absender usw. genommen werden.

CPSC
2021-11-07 18:16:34

drlecter schrieb:

Es geht um den Header der Mail die beim Provider angekommen ist. Das Problem ist, solange man nicht weiss, warum die Mail als Spam einsortiert wurde, ist das ein stochern im dunklen. Versendet ihr über die Standardmail Funktion oder über die SMTP Config (was mehr Sinn macht, weil man da ein richtiges Konto hinterlegt usw.)
Ach, den Code habe ich selber :) Nutze ja auch die Galerie. Ich habe aber keinen Mail Versand. Nur über den lokalen Mailer an mich selber für die Updates.

Code:

Return-Path: <SRS0=S8erSE=PX=post.webmailer.de=postmaster+2025333@srs.smtpin.rzone.de>
Authentication-Results:  mqgmx026.server.lan; dkim=pass header.i=@pennywize.org
Received: from mi4-p00-ob.smtp.rzone.de ([81.169.146.147]) by mx-ha.gmx.net
 (mxgmx015 [212.227.15.9]) with ESMTPS (Nemesis) id 1ML8uO-1n0ozj1IOo-00ICaQ
 for <pennywize@gmx.net>; Thu, 04 Nov 2021 22:21:45 +0100
ARC-Seal: i=1; a=rsa-sha256; t=1636060905; cv=none;
    d=strato.com; s=strato-dkim-0002;
    b=ag3jq+uFHsKUvKQbIxW4OMtreMtxvcxcUFVaZU6nIx9UR1oSOwnJqXBy+qElLQZTa+
    YbANft1x4WvyEyhtegkBNTBP/9GMd/iriDhCj3bUkU233af6wwjW/h0zpK5mqpl1KyQ+
    ne5JUMzxLWOCJt+BlKvFfjJWNyRVu/19ylis/dbnRh4bFGI4l6xth53oU1r0OS96zB4b
    9SUUtx7BjQSqJHSDnJzAocidSr3yFUKTYO3sd7l1jjyKbcf8yzvQz9HigRrQjzADF4gl
    VIFYfHK9b/zHSCn2VptkDMKYdEcFfgm8MSyuaMUMwmtpGRYWwjzZbT26E90vqLLNXHsQ
    /50Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1636060905;
    s=strato-dkim-0002; d=strato.com;
    h=Message-ID:From:Date:Subject:To:Cc:Date:From:Subject:Sender;
    bh=BWaGXRJmgKcc/6i/Lx3LNk8EQT3fOD0RyXTD6svte8k=;
    b=sSYoWnWha8FwHDJrr4aLxFHSjTum0HoHx9YyckXezpCZMFc8MiTdzvyUX7soQ4HNEA
    ze3gK6wcxrfvpGaH6tlQIVA6d06rA4HXGpkLEdES+pSt/WIeF9ESOyAKCOPEMWVKxxJv
    pzKiJoO3RKcVv39aT9Qpq/zUvlJJCNzOazZbaT2vCGbZbtvz6qWsSRsMM9CRRI06g7tx
    cRCHkm5rJzcmpT+2PIgd6jB+IimPatwT5BwSaoIF3IpPsvsfz0mGjn1NuTi6ztv1/vna
    i7jijeR0oOeijoCeHt7M2Y+9zKnv60iXVE/QNtF9ZJ9bqCeZEEaCGXibioa502BDLjSt
    vwLw==
ARC-Authentication-Results: i=1; strato.com;
    dmarc=none header.from="pennywize.org";
    dkim=pass header.d="pennywize.org" header.s="strato-dkim-0002" header.a="rsa-sha256";
    dkim-adsp=pass;
    spf=pass smtp.mailfrom="postmaster+2025333@post.webmailer.de";
  x-fwd=pass
X-RZG-FWD-BY: pennywize@pennywize.org
Received: from localhost ([unix socket])
  by mailin.rzone.de (RZmta 47.34.1) with LMTPS;
  Thu, 4 Nov 2021 22:21:45 +0100 (CET)
X-RZG-Expurgate: clean/normal
X-RZG-Expurgate-ID: 149500::1636060905-00003A39-D11B136D/0/0
X-RZG-CLASS-ID: mi00
Received-SPF: pass
    (strato.com: domain _spf.strato.com designates 81.169.146.192 as permitted sender)
    mechanism=ip4;
    client-ip=81.169.146.192;
    helo="cg4-p00-ob.smtp.rzone.de";
    envelope-from="postmaster+2025333@post.webmailer.de";
    receiver=smtpin.rzone.de;
    identity=mailfrom;
Received: from cg4-p00-ob.smtp.rzone.de ([81.169.146.192])
    by smtpin.rzone.de (RZmta 47.34.1 OK)
    with ESMTPS id T00a73xA4LLiKUM
    (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits))
    (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK (+EmiG)))
        (Client hostname verified OK)
    for <pennywize@pennywize.org>;
    Thu, 4 Nov 2021 22:21:44 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1636060904;
    s=strato-dkim-0002; d=pennywize.org;
    h=Message-ID:From:Date:Subject:To:Cc:Date:From:Subject:Sender;
    bh=BWaGXRJmgKcc/6i/Lx3LNk8EQT3fOD0RyXTD6svte8k=;
    b=DKTxEQUNE7s901Sfo8dSL71fv8dB0FOlWtOZGymvHPXTpucVSjVN3RSJxuVILc9tas
    MD4BL98o/xz+hPuDvXVWe0Vrq/89LrFTpJK+k9+08X0uWZ0AnoJW7eum2xzAeloml63M
    8t0+MSrbRtnHJsOjosZAXm6Z4fmXr1KgqJ9z4ADBTaPVcLi2atmoJYxfn9k2hHLIcXyv
    nsdoy5H9gy9Mhp3/cVqLNEySweVPMj5wfCBK4uHRc4xfJ1cNUpJZveKODX/La1TeVlFP
    tTQZ7AY031XP37FMumQltoXPvkhPfIcbd/rKxNI18sQhn0/kJApVSqfX1bZuJT1VaO7R
    DOHQ==
X-RZG-CLASS-ID: cg00
Received: from basharat.store.d0m.de ([192.168.42.233])
    by chrootmail.store.d0m.de (RZmta 47.34.1 OK)
    with ESMTPA id L0347bxA4LLi2ba
    for <pennywize@pennywize.org>;
    Thu, 4 Nov 2021 22:21:44 +0100 (CET)
Received: by basharat.store.d0m.de (Postfix, from userid 100)
  id BD25D180008D; Thu,  4 Nov 2021 22:21:44 +0100 (CET)
To: pennywize@pennywize.org
Subject: Neuer Supporter werden-Eintrag
Date: Thu, 4 Nov 2021 21:21:44 +0000
From: Deutscher Car Parking Support <pennywize@pennywize.org>
Message-ID: <6qvrG03ImYBgNEzEsgwrrkgWkrNnAyyNd66hTjDpg@cps-c.net>
X-Mailer: PHPMailer 6.5.0 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
X-RZG-SCRIPT: ":P28WfFC8JrA0JY4UkyfhUWv+YuCloWhyOLk77zZraDNPI4MwvWhyTMS6lCoUkVPi1sWRHR5XQoLI4zExwtvsH0wNwuuiMsesJJrdx9WF0ToojqUsKxmm7W1yYeV2m6bBkLFIufmtyQYi5Qj7qqQV6YojJ2XanwYrZmppoo8qSFL7Mjg="
Envelope-To: <penn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tXQIbcFK8mQkbERWB7SKshuo8oi/Uj9E4jVKihv8OWmQUUaczO7GmYACt60LPuYhyy4
 UI+1h0M9lP0pdZJ7A5C1Ec=
X-Antivirus: Avast (VPS 211107-4, 7.11.2021), Inbound message
X-Antivirus-Status: Clean

<!doctype html>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
  <!--[if gte mso 15]>
  <xml>
    <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    <o:PixelsPerInch>96</o:PixelsPerInch>
    </o:OfficeDocumentSettings>
  </xml>
  <![endif]-->
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Car Parking Support Community</title>
  <style type="text/css">
    p{
      margin:10px 0;
      padding:0;
    }
    table{
      border-collapse:collapse;
    }
    h1,h2,h3,h4,h5,h6{
      display:block;
      margin:0;
      padding:0;
    }
    img,a img{
      border:0;
      height:auto;
      outline:none;
      text-decoration:none;
    }
    body,#bodyTable,#bodyCell{
      height:100%;
      margin:0;
      padding:0;
      width:100%;
    }
    #outlook a{
      padding:0;
    }
    img{
      -ms-interpolation-mode:bicubic;
    }
    table{
      mso-table-lspace:0pt;
      mso-table-rspace:0pt;
    }
    .ReadMsgBody{
      width:100%;
    }
    .ExternalClass{
      width:100%;
    }
    p,a,li,td,blockquote{
      mso-line-height-rule:exactly;
    }
    a[href^=tel],a[href^=sms]{
      color:inherit;
      cursor:default;
      text-decoration:none;
    }
    p,a,li,td,body,table,blockquote{
      -ms-text-size-adjust:100%;
      -webkit-text-size-adjust:100%;
    }
    .ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{
      line-height:100%;
    }
    a[x-apple-data-detectors]{
      color:inherit !important;
      text-decoration:none !important;
      font-size:inherit !important;
      font-family:inherit !important;
      font-weight:inherit !important;
      line-height:inherit !important;
    }
    #bodyCell{
      padding:50px 50px;
    }
    .templateContainer{
      max-width:600px !important;
      border:0;
    }
    a.mcnButton{
      display:block;
    }
    .mcnTextContent{
      word-break:break-word;
    }
    .mcnTextContent img{
      height:auto !important;
    }
    .mcnDividerBlock{
      table-layout:fixed !important;
    }
    /***** Make theme edits below if needed *****/
    /* Page - Background Style */
    body,#bodyTable{
      background-color:#e9eaec;
    }
    /* Page - Heading 1 */
    h1{
      color:#202020;
      font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
      font-size:26px;
      font-style:normal;
      font-weight:bold;
      line-height:125%;
      letter-spacing:normal;
    }
    /* Page - Heading 2 */
    h2{
      color:#202020;
      font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
      font-size:22px;
      font-style:normal;
      font-weight:bold;
      line-height:125%;
      letter-spacing:normal;
    }
    /* Page - Heading 3 */
    h3{
      color:#202020;
      font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
      font-size:20px;
      font-style:normal;
      font-weight:bold;
      line-height:125%;
      letter-spacing:normal;
    }
    /* Page - Heading 4 */
    h4{
      color:#202020;
      font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
      font-size:18px;
      font-style:normal;
      font-weight:bold;
      line-height:125%;
      letter-spacing:normal;
    }
    /* Header - Header Style */
    #templateHeader{
      border-top:0;
      border-bottom:0;
      padding-top:0;
      padding-bottom:20px;
      text-align: center;
    }
    /* Body - Body Style */
    #templateBody{
      background-color:#FFFFFF;
      border-top:0;
      border: 1px solid #c1c1c1;
      padding-top:0;
      padding-bottom:0px;
    }
    /* Body -Body Text */
    #templateBody .mcnTextContent,
    #templateBody .mcnTextContent p{
      color:#555555;
      font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
      font-size:14px;
      line-height:150%;
    }
    /* Body - Body Link */
    #templateBody .mcnTextContent a,
    #templateBody .mcnTextContent p a{
      color:#ff7f50;
      font-weight:normal;
      text-decoration:underline;
    }
    /* Footer - Footer Style */
    #templateFooter{
      background-color:#e9eaec;
      border-top:0;
      border-bottom:0;
      padding-top:12px;
      padding-bottom:12px;
    }
    /* Footer - Footer Text */
    #templateFooter .mcnTextContent,
    #templateFooter .mcnTextContent p{
      color:#cccccc;
      font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
      font-size:12px;
      line-height:150%;
      text-align:center;
    }
    /* Footer - Footer Link */
    #templateFooter .mcnTextContent a,
    #templateFooter .mcnTextContent p a{
      color:#cccccc;
      font-weight:normal;
      text-decoration:underline;
    }
    @media only screen and (min-width:768px){
      .templateContainer{
        width:600px !important;
      }
    }
    @media only screen and (max-width: 480px){
      body,table,td,p,a,li,blockquote{
        -webkit-text-size-adjust:none !important;
      }
    }
    @media only screen and (max-width: 480px){
      body{
        width:100% !important;
        min-width:100% !important;
      }
    }
    @media only screen and (max-width: 680px){
      #bodyCell{
        padding:20px 20px !important;
      }
    }
    @media only screen and (max-width: 480px){
      .mcnTextContentContainer{
        max-width:100% !important;
        width:100% !important;
      }
    }
  </style>
</head>
<body style="height: 100%;margin: 0;padding: 0;width: 100%;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #e9eaec;">
  <!-- Don't forget to run final template through http://templates.mailchimp.com/resources/inline-css/ -->
  <center>
    <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 0;width: 100%;background-color: #e9eaec;">
      <tr>
        <td align="center" valign="top" id="bodyCell" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 50px 50px;width: 100%;">
          <!-- BEGIN TEMPLATE // -->
          <!--[if gte mso 9]>
          <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
          <tr>
          <td align="center" valign="top" width="600" style="width:600px;">
          <![endif]-->
          <table border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;border: 0;max-width: 600px !important;">
                        <tr>
              <td valign="top" id="templateBody" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;border-top: 0;border: 1px solid #c1c1c1;padding-top: 0;padding-bottom: 0px;">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
                  <tbody class="mcnTextBlockOuter">
                    <tr>
                      <td valign="top" class="mcnTextBlockInner" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
                        <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer">
                          <tbody>
                            <tr>
                              <td valign="top" style="padding-top: 30px;padding-right: 30px;padding-bottom: 30px;padding-left: 30px;" class="mcnTextContent">
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style=" display:block;min-width: 100%;border-collapse: collapse;width:100%;">
<tbody>
<tr>
<td style="color:#333333;padding-top: 20px;padding-bottom: 3px;"><strong>Name</strong></td>
</tr>
<tr>
<td style="color:#555555;padding-top: 3px;padding-bottom: 20px;">Max Mustermann</td>
</tr>
</tbody>
</table>
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-top:1px solid #dddddd; display:block;min-width: 100%;border-collapse: collapse;width:100%;">
<tbody>
<tr>
<td style="color:#333333;padding-top: 20px;padding-bottom: 3px;"><strong>E-Mail</strong></td>
</tr>
<tr>
<td style="color:#555555;padding-top: 3px;padding-bottom: 20px;"><a href="mailto:info@cherrycore.net">info@cherrycore.net</a></td>
</tr>
</tbody>
</table>
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-top:1px solid #dddddd; display:block;min-width: 100%;border-collapse: collapse;width:100%;">
<tbody>
<tr>
<td style="color:#333333;padding-top: 20px;padding-bottom: 3px;"><strong>Grundlegende Angaben</strong></td>
</tr>
<tr>
<td style="color:#555555;padding-top: 3px;padding-bottom: 20px;">Du bist 16+?<br />
Du bist 18+?<br />
Du bist zeitlich flexibel?<br />
Du hast unsere Regeln gelesen?<br />
Du hast unsere Mindestanforderungen gelesen?<br />
Du besitzt keine Glitch Cars?<br />
Du besitzt keine Cheattools?<br />
Dein ACC wurde noch nie gebannt?<br />
Dein ACC wurde in sonstiger Art nicht sanktioniert?<br />
Du möchtest Aidana Games und DCPS dabei unterstützen, das Spiel CPM sicherer und besser zu gestalten?<br />
Auf deiner Freundesliste ist niemand der Cheatet, Glitcht oder mit anderen Methoden unfaire Modifikationen ausführt?<br />
Du hast grundlegende Rechtsverständnisse? (Urheberrecht, Jugendschutz, Datenschutz, Strafrecht)<br />
Du erkennst an, dass du bei DCPS kein Geld verdienen wirst?</td>
</tr>
</tbody>
</table>
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-top:1px solid #dddddd; display:block;min-width: 100%;border-collapse: collapse;width:100%;">
<tbody>
<tr>
<td style="color:#333333;padding-top: 20px;padding-bottom: 3px;"><strong>Warum möchtest Du Supporter werden?</strong></td>
</tr>
<tr>
<td style="color:#555555;padding-top: 3px;padding-bottom: 20px;">sdfsfdsfsdfsd</td>
</tr>
</tbody>
</table>

                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            <tr>
              <td valign="top" id="templateFooter" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #e9eaec;border-top: 0;border-bottom: 0;padding-top: 12px;padding-bottom: 12px;">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
                  <tbody class="mcnTextBlockOuter">
                    <tr>
                      <td valign="top" class="mcnTextBlockInner" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
                        <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer">
                          <tbody>
                            <tr>
                              <td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #aaa;font-family: Helvetica;font-size: 12px;line-height: 150%;text-align: center;">

                                <!-- Footer content -->
                                Gesendet von <a href="https://cps-c.net" style="color:#bbbbbb;">Car Parking Support Community</a>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
          </table>
          <!--[if gte mso 9]>
          </td>
          </tr>
          </table>
          <![endif]-->
          <!-- // END TEMPLATE -->
          </td>
        </tr>
      </table>
    </center>
  </body>
</html>

Also dass ist das was ich selbst bekomme, kommt aber nicht als Spam an.
Wie's bei GMAIL aussieht, keine Ahnung =)

drlecter
2021-11-07 18:02:11

Es geht um den Header der Mail die beim Provider angekommen ist. Das Problem ist, solange man nicht weiss, warum die Mail als Spam einsortiert wurde, ist das ein stochern im dunklen. Versendet ihr über die Standardmail Funktion oder über die SMTP Config (was mehr Sinn macht, weil man da ein richtiges Konto hinterlegt usw.)
Ach, den Code habe ich selber :) Nutze ja auch die Galerie. Ich habe aber keinen Mail Versand. Nur über den lokalen Mailer an mich selber für die Updates.

CPSC
2021-11-07 17:31:34

CPSC schrieb:

drlecter schrieb:

Bei welchen Anbietern landen denn die Mails in Spam? Habt ihr euch einmal die Header angeschaut? Was steht denn da genau drin. Ohne die Infos kann man nichts machen.

Überwiegend wohl bei GMX und GMAIL. Alle anderen haben keine Probleme.
Host ist All-Inkl.com, und den Header haben wir unverändert belassen.
Lediglich unsere Mail und SMTP Daten hinterlegt.

Auszug aus dem Quellcode der Datei: notification_by_mail.php
==============================================

Code:

<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo.                                          |
// |                                                                       |
// | For copyright and license information, please view the COPYING.txt    |
// | file that was distributed with this source code.                      |
// +-----------------------------------------------------------------------+

// +-----------------------------------------------------------------------+
// | include                                                               |
// +-----------------------------------------------------------------------+

if (!defined('PHPWG_ROOT_PATH'))
{
  die ("Hacking attempt!");
}

include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include_once(PHPWG_ROOT_PATH.'admin/include/functions_notification_by_mail.inc.php');
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_notification.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');

// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok                      |
// +-----------------------------------------------------------------------+
check_status(ACCESS_ADMINISTRATOR);

check_input_parameter('mode', $_GET, false, '/^(param|subscribe|send)$/');

// +-----------------------------------------------------------------------+
// | Initialization                                                        |
// +-----------------------------------------------------------------------+
$base_url = get_root_url().'admin.php';
$must_repost = false;

// +-----------------------------------------------------------------------+
// | functions                                                             |
// +-----------------------------------------------------------------------+

/*
 * Do timeout treatment in order to finish to send mails
 *
 * @param $post_keyname: key of check_key post array
 * @param check_key_treated: array of check_key treated
 * @return none
 */
function do_timeout_treatment($post_keyname, $check_key_treated = array())
{
  global $env_nbm, $base_url, $page, $must_repost;

  if ($env_nbm['is_sendmail_timeout'])
  {
    if (isset($_POST[$post_keyname]))
    {
      $post_count = count($_POST[$post_keyname]);
      $treated_count = count($check_key_treated);
      if ($treated_count != 0)
      {
        $time_refresh = ceil((get_moment() - $env_nbm['start_time']) * $post_count / $treated_count);
      }
      else
      {
        $time_refresh = 0;
      }
      $_POST[$post_keyname] = array_diff($_POST[$post_keyname], $check_key_treated);

      $must_repost = true;
      $page['errors'][] = l10n_dec(
        'Execution time is out, treatment must be continue [Estimated time: %d second].',
        'Execution time is out, treatment must be continue [Estimated time: %d seconds].',
        $time_refresh
        );
    }
  }

}

/*
 * Get the authorized_status for each tab
 * return corresponding status
 */
function get_tab_status($mode)
{
  $result = ACCESS_WEBMASTER;
  switch ($mode)
  {
    case 'param':
    case 'subscribe':
      $result = ACCESS_WEBMASTER;
      break;
    case 'send':
      $result = ACCESS_ADMINISTRATOR;
      break;
    default:
      $result = ACCESS_WEBMASTER;
      break;
  }
  return $result;
}

/*
 * Inserting News users
 */
function insert_new_data_user_mail_notification()
{
  global $conf, $page, $env_nbm;

  // Set null mail_address empty
  $query = '
update
  '.USERS_TABLE.'
set
  '.$conf['user_fields']['email'].' = null
where
  trim('.$conf['user_fields']['email'].') = \'\';';
  pwg_query($query);

  // null mail_address are not selected in the list
  $query = '
select
  u.'.$conf['user_fields']['id'].' as user_id,
  u.'.$conf['user_fields']['username'].' as username,
  u.'.$conf['user_fields']['email'].' as mail_address
from
  '.USERS_TABLE.' as u left join '.USER_MAIL_NOTIFICATION_TABLE.' as m on u.'.$conf['user_fields']['id'].' = m.user_id
where
  u.'.$conf['user_fields']['email'].' is not null and
  m.user_id is null
order by
  user_id;';

  $result = pwg_query($query);

  if (pwg_db_num_rows($result) > 0)
  {
    $inserts = array();
    $check_key_list = array();

    while ($nbm_user = pwg_db_fetch_assoc($result))
    {
      // Calculate key
      $nbm_user['check_key'] = find_available_check_key();

      // Save key
      $check_key_list[] = $nbm_user['check_key'];

      // Insert new nbm_users
      $inserts[] = array(
        'user_id' => $nbm_user['user_id'],
        'check_key' => $nbm_user['check_key'],
        'enabled' => 'false' // By default if false, set to true with specific functions
        );

      $page['infos'][] = l10n(
        'User %s [%s] added.',
        stripslashes($nbm_user['username']),
        $nbm_user['mail_address']
        );
    }

    // Insert new nbm_users
    mass_inserts(USER_MAIL_NOTIFICATION_TABLE, array('user_id', 'check_key', 'enabled'), $inserts);
    // Update field enabled with specific function
    $check_key_treated = do_subscribe_unsubscribe_notification_by_mail
    (
      true,
      $conf['nbm_default_value_user_enabled'],
      $check_key_list
    );

     // On timeout simulate like tabsheet send
    if ($env_nbm['is_sendmail_timeout'])
    {
      $quoted_check_key_list = quote_check_key_list(array_diff($check_key_list, $check_key_treated));
      if (count($quoted_check_key_list) != 0 )
      {
        $query = 'delete from '.USER_MAIL_NOTIFICATION_TABLE.' where check_key in ('.implode(",", $quoted_check_key_list).');';
        $result = pwg_query($query);

        redirect($base_url.get_query_string_diff(array(), false), l10n('Operation in progress')."\n".l10n('Please wait...'));
      }
    }
  }
}

/*
 * Apply global functions to mail content
 * return customize mail content rendered
 */
function render_global_customize_mail_content($customize_mail_content)
{
  global $conf;

  if ($conf['nbm_send_html_mail'] and !(strpos($customize_mail_content, '<') === 0))
  {
    // On HTML mail, detects if the content are HTML format.
    // If it's plain text format, convert content to readable HTML
    return nl2br(htmlspecialchars($customize_mail_content));
  }
  else
  {
    return $customize_mail_content;
  }
}

/*
 * Send mail for notification to all users
 * Return list of "selected" users for 'list_to_send'
 * Return list of "treated" check_key for 'send'
 */
function do_action_send_mail_notification($action = 'list_to_send', $check_key_list = array(), $customize_mail_content = '')
{
  global $conf, $page, $user, $lang_info, $lang, $env_nbm;
  $return_list = array();

  if (in_array($action, array('list_to_send', 'send')))
  {
    list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));

    $is_action_send = ($action == 'send');

    // disabled and null mail_address are not selected in the list
    $data_users = get_user_notifications('send', $check_key_list);

    // List all if it's define on options or on timeout
    $is_list_all_without_test = ($env_nbm['is_sendmail_timeout'] or $conf['nbm_list_all_enabled_users_to_send']);

    // Check if exist news to list user or send mails
    if ((!$is_list_all_without_test) or ($is_action_send))
    {
      if (count($data_users) > 0)
      {
        $datas = array();

        if (!isset($customize_mail_content))
        {
          $customize_mail_content = $conf['nbm_complementary_mail_content'];
        }

        $customize_mail_content = 
          trigger_change('nbm_render_global_customize_mail_content', $customize_mail_content);


        // Prepare message after change language
        if ($is_action_send)
        {
          $msg_break_timeout = l10n('Time to send mail is limited. Others mails are skipped.');
        }
        else
        {
          $msg_break_timeout = l10n('Prepared time for list of users to send mail is limited. Others users are not listed.');
        }

        // Begin nbm users environment
        begin_users_env_nbm($is_action_send);

        foreach ($data_users as $nbm_user)
        {
          if ((!$is_action_send) and check_sendmail_timeout())
          {
            // Stop fill list on 'list_to_send', if the quota is override
            $page['infos'][] = $msg_break_timeout;
            break;
          }
          if (($is_action_send) and check_sendmail_timeout())
          {
            // Stop fill list on 'send', if the quota is override
            $page['errors'][] = $msg_break_timeout;
            break;
          }

          // set env nbm user
          set_user_on_env_nbm($nbm_user, $is_action_send);

          if ($is_action_send)
          {
            $auth = null;
            $add_url_params = array();
            
            $auth_key = create_user_auth_key($nbm_user['user_id'], $nbm_user['status']);
            
            if ($auth_key !== false)
            {
              $auth = $auth_key['auth_key'];
              $add_url_params['auth'] = $auth;
            }
            
            set_make_full_url();
            // Fill return list of "treated" check_key for 'send'
            $return_list[] = $nbm_user['check_key'];

            if ($conf['nbm_send_detailed_content'])
            {
              $news = news($nbm_user['last_send'], $dbnow, false, $conf['nbm_send_html_mail'], $auth);
               $exist_data = count($news) > 0;
            }
            else
            {
              $exist_data = news_exists($nbm_user['last_send'], $dbnow);
            }

            if ($exist_data)
            {
              $subject = '['.$conf['gallery_title'].'] '.l10n('New photos added');

              // Assign current var for nbm mail
              assign_vars_nbm_mail_content($nbm_user);

              if (!is_null($nbm_user['last_send']))
              {
                $env_nbm['mail_template']->assign
                (
                  'content_new_elements_between',
                  array
                  (
                    'DATE_BETWEEN_1' => $nbm_user['last_send'],
                    'DATE_BETWEEN_2' => $dbnow,
                  )
                );
              }
              else
              {
                $env_nbm['mail_template']->assign
                (
                  'content_new_elements_single',
                  array
                  (
                    'DATE_SINGLE' => $dbnow,
                  )
                );
              }

              if ($conf['nbm_send_detailed_content'])
              {
                $env_nbm['mail_template']->assign('global_new_lines', $news);
              }

              $nbm_user_customize_mail_content = 
                trigger_change('nbm_render_user_customize_mail_content',
                  $customize_mail_content, $nbm_user);
              if (!empty($nbm_user_customize_mail_content))
              {
                $env_nbm['mail_template']->assign
                (
                  'custom_mail_content', $nbm_user_customize_mail_content
                );
              }

              if ($conf['nbm_send_html_mail'] and $conf['nbm_send_recent_post_dates'])
              {
                $recent_post_dates = get_recent_post_dates_array(
                  $conf['recent_post_dates']['NBM']);
                foreach ($recent_post_dates as $date_detail)
                {
                  $env_nbm['mail_template']->append
                  (
                    'recent_posts',
                    array
                    (
                      'TITLE' => get_title_recent_post_date($date_detail),
                      'HTML_DATA' => get_html_description_recent_post_date($date_detail, $auth)
                    )
                  );
                }
              }

              $env_nbm['mail_template']->assign
              (
                array
                (
                  'GOTO_GALLERY_TITLE' => $conf['gallery_title'],
                  'GOTO_GALLERY_URL' => add_url_params(get_gallery_home_url(), $add_url_params),
                  'SEND_AS_NAME'      => $env_nbm['send_as_name'],
                )
              );
              
              $ret = pwg_mail(
                array(
                  'name' => stripslashes($nbm_user['username']),
                  'email' => $nbm_user['mail_address'],
                  ),
                array(
                  'from' => $env_nbm['send_as_mail_formated'],
                  'subject' => $subject,
                  'email_format' => $env_nbm['email_format'],
                  'content' => $env_nbm['mail_template']->parse('notification_by_mail', true),
                  'content_format' => $env_nbm['email_format'],
                  'auth_key' => $auth,
                  )
                );

              if ($ret)
              {
                inc_mail_sent_success($nbm_user);

                $datas[] = array(
                  'user_id' => $nbm_user['user_id'],
                  'last_send' => $dbnow
                  );
              }
              else
              {
                inc_mail_sent_failed($nbm_user);
              }

              unset_make_full_url();
            }
          }
          else
          {
            if (news_exists($nbm_user['last_send'], $dbnow))
            {
              // Fill return list of "selected" users for 'list_to_send'
              $return_list[] = $nbm_user;
            }
          }

          // unset env nbm user
          unset_user_on_env_nbm();
        }

        // Restore nbm environment
        end_users_env_nbm();

        if ($is_action_send)
        {
          mass_updates(
            USER_MAIL_NOTIFICATION_TABLE,
            array(
              'primary' => array('user_id'),
              'update' => array('last_send')
             ),
             $datas
             );

          display_counter_info();
        }
      }
      else
      {
        if ($is_action_send)
        {
          $page['errors'][] = l10n('No user to send notifications by mail.');
        }
      }
    }
    else
    {
      // Quick List, don't check news
      // Fill return list of "selected" users for 'list_to_send'
      $return_list = $data_users;
    }
  }

  // Return list of "selected" users for 'list_to_send'
  // Return list of "treated" check_key for 'send'
  return $return_list;
}

// +-----------------------------------------------------------------------+
// | Main                                                                  |
// +-----------------------------------------------------------------------+
if (!isset($_GET['mode']))
{
  $page['mode'] = 'send';
}
else
{
  $page['mode'] = $_GET['mode'];
}

// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok                      |
// +-----------------------------------------------------------------------+
check_status(get_tab_status($page['mode']));


// +-----------------------------------------------------------------------+
// | Add event handler                                                     |
// +-----------------------------------------------------------------------+
add_event_handler('nbm_render_global_customize_mail_content', 'render_global_customize_mail_content');
trigger_notify('nbm_event_handler_added');


// +-----------------------------------------------------------------------+
// | Insert new users with mails                                           |
// +-----------------------------------------------------------------------+
if (!isset($_POST) or (count($_POST) ==0))
{
  // No insert data in post mode
  insert_new_data_user_mail_notification();
}

// +-----------------------------------------------------------------------+
// | Treatment of tab post                                                 |
// +-----------------------------------------------------------------------+

if (!empty($_POST))
{
  check_pwg_token();
}

switch ($page['mode'])
{
  case 'param' :
  {
    if (isset($_POST['param_submit']))
    {
      $_POST['nbm_send_mail_as'] = strip_tags($_POST['nbm_send_mail_as']);

      check_input_parameter('nbm_send_html_mail', $_POST, false, '/^(true|false)$/');
      check_input_parameter('nbm_send_detailed_content', $_POST, false, '/^(true|false)$/');
      check_input_parameter('nbm_send_recent_post_dates', $_POST, false, '/^(true|false)$/');

      $updated_param_count = 0;
      // Update param
      $result = pwg_query('select param, value from '.CONFIG_TABLE.' where param like \'nbm\\_%\'');
      while ($nbm_user = pwg_db_fetch_assoc($result))
      {
        if (isset($_POST[$nbm_user['param']]))
        {
          conf_update_param($nbm_user['param'], $_POST[$nbm_user['param']], true);
          $updated_param_count++;
        }
      }

      $page['infos'][] = l10n_dec(
        '%d parameter was updated.', '%d parameters were updated.',
        $updated_param_count
        );
    }
  }
  case 'subscribe' :
  {
    if (isset($_POST['falsify']) and isset($_POST['cat_true']))
    {
      $check_key_treated = unsubscribe_notification_by_mail(true, $_POST['cat_true']);
      do_timeout_treatment('cat_true', $check_key_treated);
    }
    else
    if (isset($_POST['trueify']) and isset($_POST['cat_false']))
    {
      $check_key_treated = subscribe_notification_by_mail(true, $_POST['cat_false']);
      do_timeout_treatment('cat_false', $check_key_treated);
    }
    break;
  }

  case 'send' :
  {
    if (isset($_POST['send_submit']) and isset($_POST['send_selection']) and isset($_POST['send_customize_mail_content']))
    {
      $check_key_treated = do_action_send_mail_notification('send', $_POST['send_selection'], stripslashes($_POST['send_customize_mail_content']));
      do_timeout_treatment('send_selection', $check_key_treated);
    }
  }
}

// +-----------------------------------------------------------------------+
// | template initialization                                               |
// +-----------------------------------------------------------------------+
$template->set_filenames
(
  array
  (
    'double_select' => 'double_select.tpl',
    'notification_by_mail'=>'notification_by_mail.tpl'
  )
);

$template->assign
(
  array
  (
    'PWG_TOKEN' => get_pwg_token(),
    'U_HELP' => get_root_url().'admin/popuphelp.php?page=notification_by_mail',
    'F_ACTION'=> $base_url.get_query_string_diff(array())
  )
);

if (is_autorize_status(ACCESS_WEBMASTER))
{
  // TabSheet
  $tabsheet = new tabsheet();
  $tabsheet->set_id('nbm');
  $tabsheet->select($page['mode']);
  $tabsheet->assign();
}

if ($must_repost)
{
  // Get name of submit button
  $repost_submit_name = '';
  if (isset($_POST['falsify']))
  {
    $repost_submit_name = 'falsify';
  }
  elseif (isset($_POST['trueify']))
  {
    $repost_submit_name = 'trueify';
  }
  elseif (isset($_POST['send_submit']))
  {
    $repost_submit_name = 'send_submit';
  }

  $template->assign('REPOST_SUBMIT_NAME', $repost_submit_name);
}

switch ($page['mode'])
{
  case 'param' :
  {
    $template->assign(
      $page['mode'],
      array(
        'SEND_HTML_MAIL' => $conf['nbm_send_html_mail'],
        'SEND_MAIL_AS' => $conf['nbm_send_mail_as'],
        'SEND_DETAILED_CONTENT' => $conf['nbm_send_detailed_content'],
        'COMPLEMENTARY_MAIL_CONTENT' => $conf['nbm_complementary_mail_content'],
        'SEND_RECENT_POST_DATES' => $conf['nbm_send_recent_post_dates'],
        ));
    break;
  }

  case 'subscribe' :
  {
    $template->assign( $page['mode'], true );

    $template->assign(
      array(
        'L_CAT_OPTIONS_TRUE' => l10n('Subscribed'),
        'L_CAT_OPTIONS_FALSE' => l10n('Unsubscribed')
        )
      );

    $data_users = get_user_notifications('subscribe');
    
    $opt_true = array();
    $opt_true_selected = array();
    $opt_false = array();
    $opt_false_selected = array();
    foreach ($data_users as $nbm_user)
    {
      if (get_boolean($nbm_user['enabled']))
      {
        $opt_true[ $nbm_user['check_key'] ] = stripslashes($nbm_user['username']).'['.$nbm_user['mail_address'].']';
        if ((isset($_POST['falsify']) and isset($_POST['cat_true']) and in_array($nbm_user['check_key'], $_POST['cat_true'])))
        {
          $opt_true_selected[] = $nbm_user['check_key'];
        }
      }
      else
      {
        $opt_false[ $nbm_user['check_key'] ] = stripslashes($nbm_user['username']).'['.$nbm_user['mail_address'].']';
        if (isset($_POST['trueify']) and isset($_POST['cat_false']) and in_array($nbm_user['check_key'], $_POST['cat_false']))
        {
          $opt_false_selected[] = $nbm_user['check_key'];
        }
      }
    }
    $template->assign( array(
        'category_option_true'          => $opt_true,
        'category_option_true_selected' => $opt_true_selected,
        'category_option_false'         => $opt_false,
        'category_option_false_selected' => $opt_false_selected,
        )
    );
    $template->assign_var_from_handle('DOUBLE_SELECT', 'double_select');
    break;
  }

  case 'send' :
  {
    $tpl_var = array('users'=> array() );

    $data_users = do_action_send_mail_notification('list_to_send');

    $tpl_var['CUSTOMIZE_MAIL_CONTENT'] = 
      isset($_POST['send_customize_mail_content']) 
        ? stripslashes($_POST['send_customize_mail_content']) 
        : $conf['nbm_complementary_mail_content'];

    if  (count($data_users))
    {
      foreach ($data_users as $nbm_user)
      {
        if (
            (!$must_repost) or // Not timeout, normal treatment
            (($must_repost) and in_array($nbm_user['check_key'], $_POST['send_selection']))  // Must be repost, show only user to send
            )
        {
          $tpl_var['users'][] = 
            array(
              'ID' => $nbm_user['check_key'],
              'CHECKED' =>  ( // not check if not selected,  on init select<all
                              isset($_POST['send_selection']) and // not init
                              !in_array($nbm_user['check_key'], $_POST['send_selection']) // not selected
                            )   ? '' : 'checked="checked"',
              'USERNAME'=> stripslashes($nbm_user['username']),
              'EMAIL' => $nbm_user['mail_address'],
              'LAST_SEND'=> $nbm_user['last_send']
              );
        }
      }
    }
    $template->assign($page['mode'], $tpl_var);

    if ($conf['auth_key_duration'] > 0)
    {
      $template->assign(
        'auth_key_duration',
        time_since(
          strtotime('now -'.$conf['auth_key_duration'].' second'),
          'second',
          null,
          false
          )
        );
    }

    break;
  }
}

// +-----------------------------------------------------------------------+
// | Sending html code                                                     |
// +-----------------------------------------------------------------------+
$template->assign_var_from_handle('ADMIN_CONTENT', 'notification_by_mail');

?>
CPSC
2021-11-07 17:26:10

drlecter schrieb:

Bei welchen Anbietern landen denn die Mails in Spam? Habt ihr euch einmal die Header angeschaut? Was steht denn da genau drin. Ohne die Infos kann man nichts machen.

Überwiegend wohl bei GMX und GMAIL. Alle anderen haben keine Probleme.
Host ist All-Inkl.com, und den Header haben wir unverändert belassen.
Lediglich unsere Mail und SMTP Daten hinterlegt.

drlecter
2021-11-07 17:11:14

Bei welchen Anbietern landen denn die Mails in Spam? Habt ihr euch einmal die Header angeschaut? Was steht denn da genau drin. Ohne die Infos kann man nichts machen.

CPSC
2021-11-07 16:44:43

drlecter schrieb:

Piwigo versendet doch über den SMTP Server wenn ich das richtig in Erinnerung habe. Hosted ihr das auf einen eigenen Server? Wenn ja: SPF, DKIM, SSL rDNS muss alles passen. MS und Google sind da sehr eigen.

Darauf haben wir geachtet. Bei unseren Tests haben wir keine Probleme. Lediglich andere Mitglieder bekommen unsere Mails im Spam-Ordner.

Wir haben aber keinerlei Fehler feststellen können.

LG

drlecter
2021-11-07 15:44:57

Piwigo versendet doch über den SMTP Server wenn ich das richtig in Erinnerung habe. Hosted ihr das auf einen eigenen Server? Wenn ja: SPF, DKIM, SSL rDNS muss alles passen. MS und Google sind da sehr eigen.

CPSC
2021-11-07 12:47:11

Einen schönen guten Tag an die Piwigo Gemeinschaft.

Wir haben unsere Bildercloud auf Piwigo aufgezogen und rätseln darüber, warum versandte E-Mails bei einigen der Mitglieder im Spam-Ordner landen.

Wir suchen immernoch nach jener Datei, die dafür verantwortlich ist, um den E-Mail-Header anzupassen.
Daher fragen wir Euch:

Gibt es eine bestimmte herangehensweise um email-Header so anzupassen, dass diese von diversen Anbietern nicht als Spam kategorisiert werden?

Vielen Dank dafür.

onlinephotoman
2018-09-25 11:00:32

Sorry! Ich war, glaube ich, zu eilig mit der Erfolgsmeldung. Auch wenn ich als Superadministrator Personen zum Abonnement hinzufügen, tauchen diese bei 'Senden' nicht auf. Müssen die Benutzer beim Empfang der Benachrichtigungsmail irgendwo ihre Zustimmung geben?

onlinephotoman
2018-09-15 10:56:16

Ich bitte um Entschuldigung, dass ich mich erst jetzt wieder melde. Das Problem war, dass ich erst als ich mich als 'Webmaster' also als eine Art Superadministrator anmeldete, ich hier die einzelnen User für die Benachrichtigung auswählen konnte. Seitdem klappt es. Mit den Rechten eines 'Administrators' war das nicht möglich.

drlecter
2018-09-12 21:32:40

Tauchen alle Benutzer in der Abonnenten Liste auf? Gibt es für einzelnde Galerien Einstellungen unter Benachrichtigungen?

Brett Fußzeile

Unterstützt von FluxBB

github twitter newsletter Spenden Piwigo.org © 2002-2024 · Kontakt