Can I set html type to the subject of mail using swift?

115 Views Asked by At

I would like to set html type of subject using SwiftMailer. I know I can use $message->setContentType('text/html') for the body but is it possible to set html type of subject like this?

1

There are 1 best solutions below

0
Honk der Hase On

The 'subject' is a header field...

Actually you can put (almost) anything into the subject, but it will only be interpreted as text.