I'm building an emailshot tracking function in my ASP.NET site which will serve up a linked image when the email is opened, so allowing me to count the email opens.It's all above-board, opted-in etc, etc, and I've tried two methods:
- calling a \[code\].aspx\[/code\] page that serves (direct to the Response stream) a Base64-encoded image stored in a database
- calling a \[code\].ashx\[/code\] HTTP handler that serves an image from a physical folder
- Use an actual domain name in the link (rather than an IP address or localhost for testing) AND
- Link to physical files (rather than pages that serve them) using \[code\]<img src="http://domain/imagefilename.ext"/>\[/code\].