Turn off mail notifications when in mail (OS X El Capitan)
Go to System Preferences > Notifications and set Mail Alert Style to "none" and also uncheck notification center, badge app icon and sound options. This would turn off all the notifications for the default mail client.