I am trying to send email programmatically… I have this line of code:
_mail.AddAttachmentData(nsd,"text/plain", filePath);
and I haven’t a clue what goes into NSData… I tried taking the string that I was writing to a file, but apparently that doesn’t work either. I believe it is preventing me from doing a good sendmail.
NSData is a class type. See here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/Reference/Reference.html
You’ll probably want to construct your NSData object using something like this:
Then pass that in as the NSData object.