Added frontend email functionality