Some attachments (pdf, or jpg) to emails are corrupted when using a remote file path in the attachment file path (ie; http://websiteroot/directory/filename). When the file is accessed localy in dev (http://local/directory/filename) the ptoblem doesn’t occured and the attachment is readable without format error.
It seems that this bug is due to swiftmailer : https://github.com/swiftmailer/swiftmailer/issues/207.
Does anyone experienced the same issue and found a solution or workaround ?
Thanks