Generalize ticket e-mail templates

I move the general part of all ticket e-mail templates to a separate
GSP file.

Furthermore, I change the default port for SMTP to 587.