Changed filname attribute to mailObject