SENDING MAIL IN ASP.NET
In IE 5 and 5.5 you could click a button to email a page to a friend. This was pretty cool, and since mail attachments are restricted in many areas due to the proliferation of email-attachment-borne viruses, it was nice that it included the page itself as the body of the message, in HTML format. For some reason, IE 6.0 has lost this functionality, and now will only email pages as attachments (at least that's all my version does). So, for this reason and because it combines a few good concepts, I created an ASP.NET page to allow me to email the contents of a web page to someone. In particular, I use this page to send my HTML formatted newsletter, which uses ASPLists.com's Lyris server, which doesn't allow mail attachments. The code is very simple. The page, with codebehind, is listed below:
EmailWeb.aspx
EmailWeb.aspx
<%@ Page language="c#" Src="EmailWeb.aspx.cs" Codebehind |
using System; |
No comments: