Closed ComaVN closed 3 years ago
Never mind, this seems to be a bug that was introduced in one of the forks I was using
I have this problem, I cannot get the attachsment? how can I? @ComaVN
I'm having this same issue. If I attach an email with a .txt extension it shows up in the TextBody field and not as an attachment. If I change the extension to ".1" and send it, that is read as an attachment. Any ideas?
Up
I am using this fork and it works:
When sending a plain text file as an attachment to an email, the parser treats it as part of the body, and will just append it to the
TextBody
, and leave theAttachments
slice emptyexample mail:
Expected result of
parsemail.Parse
:TextBody
istest
,Attachments
has a single attachment containing the plain-text fileActual result:
TextBody
istesttestfile
,Attachments
is empty