thangdoios / skpsmtpmessage

Automatically exported from code.google.com/p/skpsmtpmessage
0 stars 0 forks source link

Implement support for large file attachments #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, becouse my app iStorage need send large files, i implement it to your smtp 
client.

usage:
NSString     *contentType = [NSString stringWithFormat: 
@"application/octet-stream; 
name=\"%@\"", fileName]; 
NSString     *disposition = [NSString stringWithFormat: @"attachment; 
filename=\"%@\"", fileName];

NSDictionary *attachment  = [NSDictionary dictionaryWithObjectsAndKeys: 
contentType, 
kSKPSMTPPartContentTypeKey, disposition, kSKPSMTPPartContentDispositionKey, 
fileName, 
kSKPSMTPPartContentDescriptionKey, @"base64", 
kSKPSMTPPartContentTransferEncodingKey, file 
fullPath, kSKPSMTPPartAttachmentPathKey, nil];

Original issue reported on code.google.com by lfold...@gmail.com on 3 Nov 2008 at 5:36

Attachments:

GoogleCodeExporter commented 8 years ago
I tried to patch this into the file and it failed for me... It may be because 
the source is at revision 16 already?

Original comment by alex...@gmail.com on 10 Nov 2008 at 4:50

GoogleCodeExporter commented 8 years ago
patch updated to r16

Original comment by lfold...@gmail.com on 11 Nov 2008 at 2:50

Attachments:

GoogleCodeExporter commented 8 years ago
Now we are at r19 :) I have a custom patch that I've done of r16-r19. Having 
some issues with length so I'm not 
sure I'm doing it correctly. 

Original comment by alex...@gmail.com on 27 Nov 2008 at 2:52

Attachments:

GoogleCodeExporter commented 8 years ago
Considering a move of this project over to github, so you guys could create 
your own branches, etc. and track. 
You guys want me to do this?

Original comment by ibaird@gmail.com on 28 Nov 2008 at 6:20

GoogleCodeExporter commented 8 years ago
Whatever works for you. I do think this is important with the limited memory 
size on the iPhone.

Original comment by alex...@gmail.com on 22 Dec 2008 at 6:52

GoogleCodeExporter commented 8 years ago
I have just downloaded r22. My App needs to send JPEG files about 200KB as 
attachments. The first few blocks 
seem to come across fine but after that i only get corrupted blocks. Is this 
maybe a problem on the base64 
encoder side? because i see a lot of newlines in the encoded string however I 
cannot find where exactly those 
newlines are coming from.  

Original comment by ekurut...@gmail.com on 27 Dec 2008 at 11:09

GoogleCodeExporter commented 8 years ago
Can I use this email client to attach 2.5MB size sound file?

Original comment by ganupi...@gmail.com on 13 Mar 2009 at 9:15

GoogleCodeExporter commented 8 years ago
To attach 2.5MB file. Which part of code I should modify?

// Ganesh Pisal

Original comment by ganupi...@gmail.com on 13 Mar 2009 at 11:48