Adding configuraton and setting smtp.