SMTP mail produces corrupted attachments

Project:thing
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

We use smtpmail.p in our application for sending mails with pdf attachments. Unfortunatly in some situations the recipiënt receives an corrupted file, when he’s trying to open it. We tested on several smtp servers and some servers corrupted the attachment, for example xs4all.nl. Has anyone experienced the same problem or could anyone help me with a solution?

Thnx,
Ingmar.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

In the smtpmail.p call change the attachment parameter to 'Type=application/octet-stream:FileType=Binary'. When I previously had it set to 'type=application/pdf' I received the corrupted pdf message. The pdf was only corrupted when there was an image in the pdf and the error message was "Insufficient data for an image".