email functionality added

but will most likely not work until paths are resolved