Menu

#74 Headers format prevents TheBat! client to display attachment

open
nobody
None
5
2005-12-10
2005-12-10
Anonymous
No

Headers format prevents TheBat! client
(http://www.ritlabs.com/en/products/thebat/) to
display attachments correctly.

Popular e-mail client could not handle/display
attached files. Tested on OpenSMTP 1.11.0.34196 and
TheBat! 3.60.07. Not tested on other clients, may be
the same problem(?)
Don't sure is it client or library problem (need to
investigate RFCs) but it could be easily fixed by
changing following lines in
Attachment.cs:Attachment.ToMime() method:

sb.Append("Content-Type: " + mimeType + ";\r\n");
and
sb.Append("Content-Disposition: attachment;\r\n");

to

sb.Append("Content-Type: " + mimeType + ";");
and
sb.Append("Content-Disposition: attachment;");

respectivly, i.e. remove line-feeds.

Anton Pototsky
antgraf@gmail.com

Discussion


Log in to post a comment.