SHARE
TWEET

Untitled

a guest May 24th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function sendEmailToClient($account, $client, $company, $subject, $message){
  2.         $message = (new \Swift_Message($subject))
  3.             ->setFrom($this->settings->no_reply_mail, $this->settings->no_reply_name)
  4.             ->setTo($client->getEmail())
  5.             ->setBody(
  6.                 $this->container->get("twig")->render("mails/email_to_client.html.twig",[
  7.                     'account' => $account ,
  8.                     'client' => $client,
  9.                     'subject' => $subject,
  10.                     'message' => $message,
  11.                     'company' => $company
  12.                 ]),
  13.                 'text/html'
  14.             );
  15.         $this->mailer->send($message);
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top