Changed PhpRenderer::basePath() to PhpRenderer::serverUrl() for email templates.