Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请让我知道,如果有的话。如何使用 Swift 库发送附件(文档/图像等)?
$message = Swift_Message::newInstance('Subject here', 'Body here'); $message->attach(Swift_Attachment::fromPath('/path/to/file'));