Archives: November 20, 2018

[Solution] Symfony SwiftMailer multiple recipients

You can use an “array” : $to = array( "user1@gmail.com" => "User 1", "user2@gmail.com" => "User 2" );   Example : $subject = "User"; $to = array( "user1@gmail.com" => "User 1", "user2@gmail.com" => "User 2" ); $from = "contact@become-developer.com"; $name = "Become Developer"; $body = "content"; $message = \Swift_Message::newInstance() ->setSubject($subject) ->setFrom($from) ->setTo($to) ->setBody($body) /* *

Read More