Apple Event: May 7th at 7 am PT

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

Mail crashes when sending

I upgraded to El Capitan when it came out. And everything was fine. Now all of a sudden Mail crashed every time I opened it. Looking at other support discussions I deleted the "envelope" files and reopened Mail without crashing. However, it does crash every time I try to send email from any of the accounts I have. Disabling all my accounts and starting with any of them still results in an instant crash when I try to send email regardless of the account. BTW of course I've rebooted my MacBook Pro too. Any suggestions?


Here's part of the error report:


Process: Mail [19359]

Path: /Applications/Mail.app/Contents/MacOS/Mail

Identifier: com.apple.mail

Version: 9.0 (3094)

Build Info: Mail-3094000000000000~1

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: Mail [19359]

User ID: 501



Date/Time: 2015-10-12 11:36:37.836 -0400

OS Version: Mac OS X 10.11 (15A284)

Report Version: 11

Anonymous UUID: 3A587A72-7303-821A-9B94-2E44DE20D751



Sleep/Wake UUID: FEEA9B2B-CC15-4841-A023-E6383D9BAFE1



Time Awake Since Boot: 17000 seconds

Time Since Wake: 3200 seconds



System Integrity Protection: enabled



Crashed Thread: 19 -[DeliveryQueue _deliverQueuedMessages:] Dispatch queue: NSOperationQueue 0x7fefa94c6d30 :: NSOperation 0x7fefaed3b770 (QOS: UTILITY)



Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY



Application Specific Information:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MCMessageHeaders removeHeaderForKey:]: unrecognized selector sent to instance 0x7fefaed531f0'

abort() called

terminating with uncaught exception of type NSException

MacBook Pro (15-inch Late 2011), OS X El Capitan (10.11), Mac Mail

Posted on Oct 12, 2015 8:44 AM

Reply
Question marked as Best reply

Posted on Oct 13, 2015 7:02 AM

Back up all data before proceeding.

Step 1

If Mail crashes or freezes immediately on launch, try the steps suggested on this page. Sometimes a corrupt message on a mail server can be deleted by logging in to the server through its web page. If Mail still won't launch, or if you can't take Step 2 for any other reason, skip to Step 3.

Step 2

There are three types of mail account: IMAP, Exchange, and POP. You can determine the type of each account by opening the Mail preferences window, selecting the Accounts tab, and then selecting Account Information.

Select all POP mailboxes, if any, and then select

Mailbox ▹ Export Mailbox...

from the Mail menu bar. Export the POP mailboxes to the Desktop folder.

If you have IMAP or Exchange accounts, and you don't store sent, deleted, and junk messages on the server, export those mailboxes the same way. You can determine whether the messages are on the server by selecting Mailbox Behaviors in the Accounts tab.

Also export all mailboxes in the On My Mac category.

You don't have to export the other mailboxes, because the messages are stored on the servers.

Quit Mail.

Step 3

In System Preferences, open Internet Accounts (OS X 10.9 or later) or Mail, Contacts & Calendars (OS X 10.7 or 10.8). Make notes of the settings for each mail account (all types), then delete the accounts.

Step 4

In the Finder, hold down the option key and select

Go ▹ Library

from the menu bar. Move the following items (some may not exist) from the folder that opens to the Desktop:

Application Support/AddressBook/MailRecents-v4.abcdmr

Containers/com.apple.corerecents.recentsd

Containers/com.apple.mail

Containers/com.apple.MailServiceAgent

Containers/com.apple.share.Mail.compose

Mail

Note: you are not moving the Mail application. You’re moving a folder named “Mail.”

Step 5

Launch Mail. It will behave as if you were setting it up for the first time. Go through the setup process with one account, using the information from Step 3. Test. If Mail works now, recreate the rest of the accounts (if you have more than one) and other settings.

Any custom stationery that you created may be lost. Ask for instructions if you want to preserve that data.

If there’s no improvement, quit Mail and put back the items you moved to the Desktop, replacing any newer ones that may have been created in their place. Stop here and post your results.

Step 6

If you took Step 2, import the mailboxes you exported:

File ▹ Import Mailbox...

Select Apple Mail as the data type. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.

The mailboxes that you didn't export in Step 1 should synchronize automatically with the server. Again, if the mailboxes are very large, downloading them may take quite some time, and network performance will be slower than usual during that time.

If you skipped Step 2, look inside the Mail folder on the Desktop for a subfolder Mail/V2/Mailboxes. Import the mailboxes it contains.

Test. If Mail is still working, delete the items you moved to the Desktop in Step 4.

2 replies
Question marked as Best reply

Oct 13, 2015 7:02 AM in response to stephenperle

Back up all data before proceeding.

Step 1

If Mail crashes or freezes immediately on launch, try the steps suggested on this page. Sometimes a corrupt message on a mail server can be deleted by logging in to the server through its web page. If Mail still won't launch, or if you can't take Step 2 for any other reason, skip to Step 3.

Step 2

There are three types of mail account: IMAP, Exchange, and POP. You can determine the type of each account by opening the Mail preferences window, selecting the Accounts tab, and then selecting Account Information.

Select all POP mailboxes, if any, and then select

Mailbox ▹ Export Mailbox...

from the Mail menu bar. Export the POP mailboxes to the Desktop folder.

If you have IMAP or Exchange accounts, and you don't store sent, deleted, and junk messages on the server, export those mailboxes the same way. You can determine whether the messages are on the server by selecting Mailbox Behaviors in the Accounts tab.

Also export all mailboxes in the On My Mac category.

You don't have to export the other mailboxes, because the messages are stored on the servers.

Quit Mail.

Step 3

In System Preferences, open Internet Accounts (OS X 10.9 or later) or Mail, Contacts & Calendars (OS X 10.7 or 10.8). Make notes of the settings for each mail account (all types), then delete the accounts.

Step 4

In the Finder, hold down the option key and select

Go ▹ Library

from the menu bar. Move the following items (some may not exist) from the folder that opens to the Desktop:

Application Support/AddressBook/MailRecents-v4.abcdmr

Containers/com.apple.corerecents.recentsd

Containers/com.apple.mail

Containers/com.apple.MailServiceAgent

Containers/com.apple.share.Mail.compose

Mail

Note: you are not moving the Mail application. You’re moving a folder named “Mail.”

Step 5

Launch Mail. It will behave as if you were setting it up for the first time. Go through the setup process with one account, using the information from Step 3. Test. If Mail works now, recreate the rest of the accounts (if you have more than one) and other settings.

Any custom stationery that you created may be lost. Ask for instructions if you want to preserve that data.

If there’s no improvement, quit Mail and put back the items you moved to the Desktop, replacing any newer ones that may have been created in their place. Stop here and post your results.

Step 6

If you took Step 2, import the mailboxes you exported:

File ▹ Import Mailbox...

Select Apple Mail as the data type. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.

The mailboxes that you didn't export in Step 1 should synchronize automatically with the server. Again, if the mailboxes are very large, downloading them may take quite some time, and network performance will be slower than usual during that time.

If you skipped Step 2, look inside the Mail folder on the Desktop for a subfolder Mail/V2/Mailboxes. Import the mailboxes it contains.

Test. If Mail is still working, delete the items you moved to the Desktop in Step 4.

Mail crashes when sending

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