Enabled CORS, fixed URL encode for mails