About
Digital Colony is the technical web site for Michael Allen Smith of Seattle.
Tag Archives: email
Sending Email in ASP.NET 2.0 (C#)
Here is the C# version of Sending Email in ASP.NET 2.0 (VB.NET). using System.Net.Mail; The code snippet demonstrates Larry King emailing Oprah. MailMessage Message = new MailMessage(); SmtpClient Smtp = new SmtpClient(); // Build message Message.From = new MailAddress(“larryking@cnn.com”, “Larry … Continue reading
Sending Email in ASP.NET Using SMTP Authentication (VB.NET)
If you don’t need to use Authentication to send email, check out the code snippet Sending Email in ASP.NET 2.0 (VB.NET). If your web host requires that you use SMTP Authentication, some additional lines of code will need to be … Continue reading
Sending Email in ASP.NET 2.0 (VB.NET)
Way back in 2001, I wrote ASP.NET Email Using VB for ASP.NET 1.x. ASP.NET 2.0 now uses the System.Net.Mail instead of the System.Web.Mail Namespace. Here is a quick snippet to get you started. Dim Message As MailMessage = New MailMessage() … Continue reading
Masking Email Addresses in PHP
Steve Waag from Lacanche Ranges was able to translate the ASP in Masking Your Email Address to PHP. <?php function maskEmail($email) { $maskedEmail = ”; for ($j = 0; $j < strlen($email); $j++) { $maskedEmail .= ‘&#’ . ord(substr($email, $j, … Continue reading
Mask Email ASCII Control for ASP.NET
In the article Masking Your Email Address, we went over why you would want to hide your email address inside the source code of an HTML document, but still make it visible to the human readers of that page. Encapsulating … Continue reading
