【发布时间】:2020-01-16 09:53:07
【问题描述】:
我正在使用 swiftmailer。一切正常。但是如果我添加这样的附件:
->attach(Swift_Attachment::fromPath('/images/products/' . $attachName))
我有一个错误:尝试加载类“Swift_Attachment”
有什么想法吗?
【问题讨论】:
-
你确定为这个类设置了USE语句并清除了缓存吗?
标签: symfony swiftmailer