public function setData($post)
{
- $this->from($post['email'], $post['prenom'] . ' ' . $post['nom']);
+
+ $this->replyTo($post['email'], $post['prenom'] . ' ' . $post['nom']);
+ $this->from('tech@fluidbook.com');
$this->to('tech@fluidbook.com');
$spam = '';
if ($post['spam'] === 'Oui') {
$spam = ' *** SPAM ***';
+ $this->withSwiftMessage(function ($message) {
+ $headers = $message->getHeaders();
+ $headers->addTextHeader('X-Fluidbook-SPAM', '1');
+ });
}
$this->subject('[Fluidbook Workshop]' . $spam . ' Demande de devis');
$this->html($converter->convertToHtml($markdown));
}
+ public function build()
+ {
+ return parent::build();
+ }
+
public static function getMarkdown($post, $footer = '')
{
$fields = array(
score BAYES_99 3.5
score BAYES_999 10.5
-# TXRep
+# Workshop rules
+header X_FLUIDBOOK_SPAM exists:X-Fluidbook-SPAM
+describe X_FLUIDBOOK_SPAM Message has been marked as SPAM by Fluidbook
+score X_FLUIDBOOK_SPAM 110.0
+# TXRep
loadplugin Mail::SpamAssassin::Plugin::TxRep
ifplugin Mail::SpamAssassin::Plugin::TxRep
use_txrep 1