在symfony中从swift邮件程序发送时阻止来自电子邮件的标题

Ran*_*hir 1 php email swiftmailer symfony

我使用swift邮件发送电子邮件.它工作正常,但在电子邮件中它发送标题信息.如何阻止它在电子邮件中发送标题信息.它就像:

 HTTP/1.0 200 OK Cache-Control: no-cache Date: Thu, 10 Jul 2014 14:42:58 GMT
 Hello User

 Here is your email content
Run Code Online (Sandbox Code Playgroud)

Dar*_*olo 6

你需要用renderView()而不是render()

renderView() 返回视图的内容.

render() 返回Responseobject.

正如文档所说