79699948

Date: 2025-07-13 12:22:46
Score: 1.5
Natty:
Report link

If you want to add many files in a loop, there is addAttachments() method. If you use just attachments() previous added files will be overwritten by newest one.

Checked at 3.1 - it works.

https://api.cakephp.org/3.1/class-Cake.Mailer.Email.html#addAttachments()

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jarek