Closed Gauthamrathinakumar closed 6 years ago
Just repeat the attachment()
call.
Taking the front page example that would be:
Mail.using(configuration)
.to("marty@mcfly.com")
.subject("This message has an text attachment")
.text("Please find attached a file.")
.multipart()
.attachment(new File("/path/to/image.jpg"))
.attachment(new File("/path/to/report.pdf"))
.build()
.send();
Hi Sargue, I am able to send mail with a single attachment . But I don't know to add the multiple attachments.Please help with this. Thanks in advance.