VS.NET 2010 (and above) Users Click Here   

HOMECONTACT PRODUCTS DOWNLOADS PURCHASE TESTIMONIALS FORUMS COMPANY CONTACT
Home
Products
Downloads
Purchase
Licensing
Licensing FAQ
Software Updates
Support Forums
Testimonials
Feature Requests
Guarantee
About Us
Contact Us
Hosting Companies
Privacy Policy
   
Shopping Cart


aspNetEmail forum



[ Reply to Post ] [ Back To Forum ]
From: "JP Toto" <jp@...>
Date: 4/13/2015 11:32:52 AM
Subject: Attachment File Name Lengths
Hello!

Having an issue where attachment file names are getting wrapped which is causing the recipient client to fail to open them (gmail included).

Using aspNetMail 4.0.0.22

Attaching files as such:


 var mailAttachment = new Attachment(attachment.Data,"outputfejiafjkdlajfkelkjekjafkldhjfdajkhjksdafhksalhfdfjksla.txt")
                        {
                            ContentType = attachment.ContentType,
                            ContentTransferEncoding = MailEncoding.Base64,
                            ContentDisposition = "attachment"
                        };

                        Mail.AddAttachment(mailAttachment);


Using an attachment name of that length, causes the file to wrap in the middle of the extension name and that is causing files to fail to open at the reciepient:

http://take.ms/SXWWF

I tried searching the forum but I don't see any other posts quite like this. As well, I didn't see a method to increase the line length allowed, other than WordWrapLen but that's for the body only.

 

 

 



Thread View

Subject By Date
Attachment File Name Lengths [ you are here ] JP Toto 4/13/2015
   RE: Attachment File Name Lengths dave wanta 4/13/2015
     RE: Attachment File Name Lengths JP Toto 4/13/2015
       RE: Attachment File Name Lengths dave wanta 4/13/2015

 

 

Testimonial

Wow! Thanks! "

E.J.S.

Read more testimonials
ListNanny aspNetDNS aspNetEmail aspNetPOP3 aspNetMX IPMuncher aspNetMIME aspNetPING aspNetTraceRoute aspNetIMAP aspNetMHT