I'm trying to copy a file (e:\file.txt) to an attachment directory, so that it can be added to an MMS message, using CSendAs.
However, when I try to do the copy, I get KErrBadName (-28), and I can successfully copy to other locations, so I think it's something about the attachment directory. Can anyone help with this? The code is:
TMsvId attachId = KMsvNullIndexEntryId;
CFileMan* cfm = CFileMan::NewL(iSession);
return cfm->Copy(_L("E:\\file.txt"), TDesC(attachName));
Any help is greatly appreciated.