My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 5: Implement support for large file attachments
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by lfoldyna, Nov 03, 2008
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];
file-attachment.diff
20.9 KB   Download
Comment 1 by alexkac, Nov 10, 2008
I tried to patch this into the file and it failed for me... It may be because the source is at revision 16 already?

Comment 2 by lfoldyna, Nov 11, 2008
patch updated to r16
file-attachment.diff
19.7 KB   Download
Comment 3 by alexkac, Nov 26, 2008
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. 



SKPSMTPMessage.h
4.4 KB   Download
SKPSMTPMessage.m
35.1 KB   Download
Comment 4 by ibaird, Nov 28, 2008
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?
Comment 5 by alexkac, Dec 22, 2008
Whatever works for you. I do think this is important with the limited memory size on the iPhone.
Comment 6 by ekurutepe, Dec 27, 2008
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.  

Comment 7 by ganupisal, Mar 13, 2009
Can I use this email client to attach 2.5MB size sound file?

Comment 8 by ganupisal, Mar 13, 2009
To attach 2.5MB file. Which part of code I should modify?

// Ganesh Pisal
Sign in to add a comment

Hosted by Google Code