|
|
(C#) Sending an Email with an Attachment (via Form)
by Matt on 2010/01/04 at 10:58 am
This article explains how to send an email that includes an attachment from a web form. This is particularly useful if you need to create a web form that allows users to upload their own file attachments. The examples in this article assume that you already have a form with a FileUpload element in it, named “fuAttachment”. This particular method is especially useful since it does not require you to save any files to the server before sending the email. The posted data is instead handled directly. You should already by familiar with sending emails from ASP.NET before reading this article. Continue Reading this Article >>(C#) Sending an Email (Plain-Text & HTML)
by Matt on 2009/12/13 at 11:57 am
This article covers the various methods of sending an email using C#, either in plain text or HTML. Continue Reading this Article >>(C#) DateTimes: Finding the last day of a month
by Matt on 2009/10/20 at 5:14 pm
Since we know that all months have at least one day, setting an existing DateTime to the first day of a month is a cinch… but finding the last day of a month is a wee bit more complicated since months tend to have a variable number of days from year to year. Fortunately, there is a relatively simple (if roundabout) way to calculate the last day in a month. Continue Reading this Article >> |