fixed reference error in addEmail when using oold coolgate url