Joomla text editors by default will "clean up" your HTML... and will make any file references "relative" urls... meaning they will drop your domain name from the url. So, on your site, it's fine. In an email, it will never display. In a good editor, like JCE, you have a parameter where you can disable relative URLs. That will fix the issue.