Browse Source

Merge branch 'develop'

master
Guillaume Bourgeois 10 months ago
parent
commit
984f0259f2
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      Notification/MailMailjetNotification.php

+ 10
- 1
Notification/MailMailjetNotification.php View File

use Lc\SovBundle\Solver\Setting\SettingSolver; use Lc\SovBundle\Solver\Setting\SettingSolver;
use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport; use Mailjet\MailjetSwiftMailer\SwiftMailer\MailjetTransport;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\Mailer\MailerInterface;
use Twig\Environment; use Twig\Environment;


class MailMailjetNotification 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);
} }
} }

Loading…
Cancel
Save