vaghanirahul / skpsmtpmessage

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

all attachment files download as .vcf #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I am using this SMTP code to send emails from iPhone.  There is, however a 
weird side-effect, 
and I'm not sure what I am doing wrong.  

In the example code, you are sending a file called test.vcf, which already 
exists in the filesystem.  
I, on the other hand, am creating a file from an NSString using the writeToFile 
method.  For 
example:

BOOL result = [exportString writeToFile:writablePath atomically:YES 
encoding:NSASCIIStringEncoding error:&error];

My data file is written property (with an extension of .csv), and the SMTP code 
successfully sends 
an email.  However, when I download the attachment on a mac, the file ALWAYS 
gets a .vcf 
extension appended to the end of the filename.  For example, if my filename is 
test.csv, the file 
will download as test.csv.vcf.  

Any idea why this would happen?

- Jeremy Jacob

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by jeremyt...@gmail.com on 6 Feb 2009 at 2:23

GoogleCodeExporter commented 9 years ago
Check the code. It's probably an issue with just copy/pasting the code w/o 
understanding how it works.

Original comment by ibaird@gmail.com on 20 Feb 2009 at 3:27