Wires server side email sending into button and removes old code

Email should be complete now.