Added Shouqin's email sending code