Multiple Attachments with Swiftmailer
问题 I'm creating a form that allows multiple files to be uploaded. The form field values and attachments are then to be emailed to certain address. I'm using Swiftmailer to generate these emails. I know how to attach a file with Swiftmailer, but I don't know how to attach multiple files. Does anybody know whether this is possible using Swiftmailer? 回答1: Yes, it's simply a matter of making multiple calls to attach() : $message->attach(Swift_Attachment::fromPath('../../uploads/hocuradit/' .