alerts email and automatic email functioning.

Signed-off-by: MwangiKevin <mwangikevinn@gmail.com>