You cannot grab any information from the mail.app on an iDevice. Apple's Sandbox rules prevent this sort of thing.
With the contacts - it's possible. You should read up on the Address framework.
Here's Apple documentation on it: https://developer.apple.com/library/ios/documentation/AddressBook/Reference/AddressBook_iPhoneOS_Framework/_index.html