Done with email send. Strange encoding crash with æøå just disappeared. Need refactoring, and maybe use a templating framework for email.