updated with mailconfig