'; } $additional_headers['Return-Path'] = LENCRIER_PUBLIC_EMAIL; $additional_headers['X-Mailer'] = 'L\'encrier'; $additional_headers['X-Face'] = '""Pr:\'Esj.7:DBN/5sJfO}8GFjH#Co9:k@$*p>.1\ms-/FbJ#h,7V/TZnqy):tijMWaR#Bh' . "\r\n" . ' ai/>@%w"*ihg\'we.]Yz1@2nw|iprsend($to, $subject, $content, $additional_headers); } else { $headers = ''; $additional_headers['MIME-Version'] = '1.0'; $additional_headers['Content-type'] = 'text/plain; charset=UTF-8'; foreach ($additional_headers as $name=>$value) { $headers .= $name . ': '.$value."\r\n"; } $headers = preg_replace("#(?get('auteur')); $subject = $journal->get('titre') . ' - Nouveau message dans le forum'; $content = "Un nouveau message a été posté dans le forum de votre journal :\n"; $content.= $journal->get('titre') . "\n"; $content.= $journal->get('url') . "\n\n"; $content.= str_repeat('=', 70) . "\n"; $content.= 'Message de : ' . (!trim($post['nom']) ? 'Anonyme' : trim($post['nom'])) . "\n"; $content.= 'Contact : ' . (trim($post['contact']) ? trim($post['contact']) : 'non renseigné'). "\n"; if (!trim($post['titre'])) { $content .= 'Titre : ' . trim($post['titre']) . "\n"; } $content .= "\n" . strip_tags($post['texte']); $content .= "\n\n-- \n ".LENCRIER_HOME_NAME."\n ".LENCRIER_HOME_URL; self::send($to, $subject, $content); } } ?>