E-mail photos from iPhoto with the mail application

When you send an image from iPhoto through an email, you can do this with the built-in mail function. Here you must use the email templates. With the following command you can disable this behavior and send pictures through the mail application and immediately create a new message.

defaults write com.apple.iPhoto EmailApp Mail

To return this functionality to iPhoto, run the following command in Terminal:

defaults write com.apple.iPhoto EmailApp iPhoto