### Variablen für die Mail ------------------------------------------------------------------------ $receiver = "##"; $domain = "##"; $statistik_start_date = "##"; $statistik_password = "##"; ### für HTML E-Mails Header setzten --------------------------------------------------------------- $header = "MIME-Version: 1.0" . "\r\n"; $header .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $header .= "Content-Transfer-Encoding: 8bit" . "\r\n"; $header .= "X-Priority: 1" . "\r\n"; ### zusätzliche Header ---------------------------------------------------------------------------- $header .= "To: ##" . "\r\n"; $header .= "Reply-To: ##" . "\r\n"; $header .= "From: ##" . "\r\n"; $header .= "Bcc: ##" . "\r\n"; ### Betreff der EMail setzen ---------------------------------------------------------------------- $reference = "Ihre Statistik vom " . date('m.Y'); ### Besucher aus Datei laden ---------------------------------------------------------------------- include("../log/cache_visitors.php"); $besucher_gesamt = array_sum($visitor_year); $besucher_im_monat = $visitor_month[ date('Y/m') ]; $besucher_im_jahr = $visitor_year[ date('Y') ]; ### Newsletter Content zusammenstellen ------------------------------------------------------------ $news_content = " <html> <head title='WebStat - Ihre Besucherstatistik'> <style type='text/css'> body { background-color:#f6f6f6; margin:0px 0px 0px 0px; } td { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#000000 } hr { color:#000000; height:1px } .content { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; text-align:justify; color:#000000 } .send_content { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; text-align:left; color:#585858 } .footer { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; text-align:justify; color:#585858 } .content_date { font-size:10px; text-align:right; } .content_link:link { font-size:12px; color:#000000; text-decoration:none } .content_link:visited { font-size:12px; color:#000000; text-decoration:none } .content_link:hover { font-size:12px; color:#8e0505; text-decoration:underline } </style> </head> <body> <div align='left'> <table width='600' border='0' cellpadding='5' cellspacing='3'> <tr> <td align='left' colspan='3' width='600'><img src='http://". $domain ."/stat/images/system.png' border='0' width='104' height='50' alt='WebStat' title='WebStat' /></td> </tr> <tr> <td class='content' colspan='3' width='600'> <strong>IHRE BESUCHERSTATISTIK - ". $domain ."</strong> <hr /> <i class='send_content'>gesendet am: ". date('d.m.Y') ." - ". date('H:i') ." Uhr</i><br /><br /> folgend erhalten Sie eine Kurzübersicht über die Besucherzahlen Ihrer Internetpräsenz.<br /> Eine ausführliche Statistik erhalten Sie im Internet unter:<br /><br /> <strong>Statistik:</strong> <a class='content_link' href='http://". $domain ."/stat' target='_blank'>http://". $domain ."/stat</a> <br /> <strong>Passwort:</strong> ". $statistik_password ." <br /> <hr /></td> </tr> <tr> <td class='content' colspan='3' width='600'>Ihre Statistik wird seit dem <strong>". $statistik_start_date ."</strong> aufgezeichnet.</td> </tr> <tr> <td align='left' width='200'><strong>Besucher Gesamt:</strong></td> <td align='left' width='100'>". $besucher_gesamt ."</td> <td width='300'> </td> </tr> <tr> <td align='left' width='200'><strong>Besucher diesen Monat:</strong></td> <td align='left' width='100'>". $besucher_im_monat ."</td> <td width='300'> </td> </tr> <tr> <td align='left' width='200'><strong>Besucher im Jahr ". date('Y') .":</strong></td> <td align='left' width='100'>". $besucher_im_jahr ."</td> <td width='300'> </td> </tr> <tr> <td class='footer' colspan='3' width='600'><br /><br /><br />Diese Email wurde durch einen Cronjob automatisch generiert, bitte antworten Sie nicht auf die Absenderadresse dieser Email.</td> </tr> </table> </div> </body> </html>"; ### verschicken der E-Mail -------------------------------------------------------------------- mail($receiver, $reference, $news_content, $header); ?>