浏览代码

Merge branch 'develop'

master
Guillaume Bourgeois 2 个月前
父节点
当前提交
984f0259f2
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. +10
    -1
      Notification/MailMailjetNotification.php

+ 10
- 1
Notification/MailMailjetNotification.php 查看文件

@@ -7,6 +7,7 @@ use Lc\SovBundle\Repository\Site\SiteStore;
use Lc\SovBundle\Solver\Setting\SettingSolver;
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\Mailer\MailerInterface;
use Twig\Environment;

class MailMailjetNotification
@@ -119,6 +120,14 @@ class MailMailjetNotification
);
}

return $this->transport->send($message);
// Classique
$transport = (new \Swift_SmtpTransport('smtp-placedulocal.alwaysdata.net', 587, 'tls'))
->setUsername('contact@placedulocal.fr')
->setPassword('7sgd5x2BVStJ69');
$mailer = new \Swift_Mailer($transport);
return $mailer->send($message);

// Mailjet
//return $this->transport->send($message);
}
}

正在加载...
取消
保存