public function sendEmail(EmailType $type)
    {
        $builder = $this->builder;
        $type->buildEmail($builder);
        $email = $builder->build(new SwiftEmail());

        $this->mailer->send($email->getMessage());
    }
public function sendEmail(EmailType $type)
    {
        $builder = $this->builder;
        $type->buildEmail($builder);
        $email = $builder->build(new SwiftEmail());

        $this->mailer->send($email->getMessage());
    }
public function sendEmail ( EmailType $ type ) { $ builder = $ this -> builder ; $ type -> buildEmail ( $ builder ) ; $ email = $ builder -> build ( new SwiftEmail ( ) ) ; $ this -> mailer -> send ( $ email -> getMessage ( ) ) ; }
Build and send a given type of email.

@param EmailType $type
Build and send a given type of email .