I would like to send an auto-generated email with HTML body from my application using Swift.
Here is my current code:
$message = Swift_Message::newInstance()
->setFrom(array( dummy1@test.com => John Doe ))
->setTo( dymmy2@test.com )
->setSubject( some subject );
$message->setBody($this->getPartial( global/mail_partial ));
$this->getMailer()->send($message);
I had already tried to change the header Content-type of the email message using some specific Swift methods but it is not working.