adding mail functionalityff