sendgrid / nodemailer-sendgrid-transport

SendGrid transport for Nodemailer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate attachments by filename are removed

deepwell opened this issue · comments

Adding more than 1 attachment with the same filename(s) are removed when sending with nodemailer-sendgrid-tranport. This bug does not effect other transports.

Eg: attachments

[
  { filename: 'presentation.xlsx',
    path: '/home/users/files/2f7402e1-4345-45bb-969a-e67b68c17e90.xlsx' },
  { filename: 'presentation.xlsx',
    path: '/home/users/files/0sdfhi43t-sfefio-sdfsdf-3433-33-324234lkd.xlsx' } 
]

Expectation:
Attachments should not be removed.