just added a new constructor for adding mail to xml