Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Cannot attach files in Mail app - claims file is empty

I have tried to attach several files to to an email through the mail app and when sent out they arrive as empty shells with the same filename. If i try to drag the file into the window it will appear but the file is empty. If I use the attach (paperclip) it simply does not appear at all.

I have tried to delete the /Library/Containers/com.apple.mail/Data/Library/Preferences/com.apple.mail.plist for it is no longer located in /Library/Preferences/com.apple.mail.plist.


I have tried a Time Machine Restore from several weeks ago but apparently it existed then too. I have tried repairing permissions through Disk Utility.


when attaching Console says this:

4/13/13 8:54:24.941 AM sandboxd[729]: ([718]) Mail(718) deny file-read-xattr /Users/Username/Desktop/Test copy.JPG


when i load the mail app i get this:

4/13/13 8:53:49.465 AM Mail[718]: Keychain sandbox consume extension error: s=-1 p= Cannot allocate memory

iMac, OS X Mountain Lion

Posted on Apr 13, 2013 8:05 AM

Reply
Question marked as Best reply

Posted on Apr 13, 2013 9:12 AM

Please follow these directions to delete the Mail "sandbox" folder.

Back up all data.

Triple-click the line below to select it:

~/Library/Containers/com.apple.mail

Right-click or control-click the highlighted line and select

Services Reveal

from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected foldernot just its contents — to the Desktop. Leave the Finder window open for now.

Quit and relaunch Mail, and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.

Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.

*If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select

Go Go to Folder...

from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

5 replies
Question marked as Best reply

Apr 13, 2013 9:12 AM in response to Dragitz

Please follow these directions to delete the Mail "sandbox" folder.

Back up all data.

Triple-click the line below to select it:

~/Library/Containers/com.apple.mail

Right-click or control-click the highlighted line and select

Services Reveal

from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected foldernot just its contents — to the Desktop. Leave the Finder window open for now.

Quit and relaunch Mail, and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.

Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.

*If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select

Go Go to Folder...

from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

May 27, 2013 6:22 AM in response to Linc Davis

I am having exactly the same problem, I tried the above steps but the problem still persist. Do you have any other solution. I also tried to create a new user account (of the machine) and configured email in that, but still attachment attaches blank file only. Also when I try to attach through the attachment button, it does not attaches. I have tried moving the com.apple.mail folder through the contextual menu, but it not worked.


Please help.

Aug 22, 2013 7:09 PM in response to PChastenay

Linc Davis' solution unfortunatly didn't work for me. So I guess your ML reinstall option is my number, though I am a little bit concerned about my apps.


I have a very healthy backup routine, so I am not worried about files. In the other hand, is it possible that after the reinstall procedure I may have some apps not running as fine as they were before? I mean, without my personal adjustments, saved accounts and not recognizing (asking once again for) some serial numbers/licences etc?


I am quite sure I have already passed through these stumbles before. Just don't remeber with wich apps.


From another perspective: waiting for Mavericks and avoiding this kind of trouble, since I will upgrade to it anyway, would be a reasonable option?


kind regards

Cannot attach files in Mail app - claims file is empty

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.