Working mailing script