[#1500] attachDataSource functionality for Mailer

See http://play.lighthouseapp.com/projects/57987/tickets/1500-adding-maillerattachdatasource-functionality