Send a web page as an email with embedded images

added by galratner
2/26/2011 10:52:27 PM

175 Views

In email marketing, sending customized emails is a common practice. Emails containing special offers, shopping cart items or any other dynamic content, are usually tailored to the individual and are being sent either by request or as a part of a marketing campaign. This presents a challenge since email templates are usually being maintained by the marketing department and need to be simple to change, yet flexible enough for a programmer to add any dynamic data as needed. The solution can be reading a dynamic existing HTML or ASPX page and emailing a copy of it to the recipients. This blog post will show how to read the HTML content of a page, add the images to an email and send the email and images as an embedded resource so that the recipients will not need to view images hosted on an external server. First we need to read the page we are about to send. This can be a URL containing the customer’s email or unique ID for example: mydomain/salereceipt.aspx?SaleID=LKJGHIU


0 comments