Removed code duplication for sending message via Mail or UIActivityViewController