Technical blog discussing various programming languages, frameworks and paradigms. Code snippets and projects are also provided.
Wednesday, 6 March 2013
Evasi0n - iOS 6.1.2 Untethered Jailbreak [v1.5 Released!]
Evasi0n is an untethered jailbreak for iOS 6.1.2! Download and view below!
View and Download
Labels:
iPhone
Sunday, 10 February 2013
CSS - Web Safe Font Stacks
Found a really good site that provides web-safe CSS font stacks for the font-family property. They provide serif, sans-serif (no tails!) and monospace font stacks.
Enjoy!
Link Here: CSS Friendly Font Stacks
Enjoy!
Link Here: CSS Friendly Font Stacks
Labels:
CSS
Wednesday, 30 January 2013
C#: Send a simple E-Mail via. Google Gmail SMTP Server
Here's a code snippet which allows you to send an E-Mail using Gmails SMTP server...
Code Snippet
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Mail;
- using System.Text;
- /// <summary>
- /// Simple Emailer class for sending a simple email.
- /// </summary>
- public class Emailer
- {
- /// <summary>
- /// Takes a users email and item name and generates an email
- /// </summary>
- /// <param name="recipient">Recipients e-mail address</param>
- public static void SendMail(string recipient)
- {
- try
- {
- // Setup mail message
- msg.Subject = "Email Subject";
- msg.Body = "Email Body";
- msg.To.Add(recipient);
- msg.IsBodyHtml = false; // Can be true or false
- // Setup SMTP client and send message
- {
- smtpClient.Host = "smtp.gmail.com";
- smtpClient.EnableSsl = true;
- smtpClient.Port = 587; // Gmail uses port 587
- smtpClient.UseDefaultCredentials = false; // Must be set BEFORE Credentials below...
- smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
- smtpClient.Send(msg);
- }
- }
- catch (SmtpFailedRecipientsException sfrEx)
- {
- // TODO: Handle exception
- // When email could not be delivered to all receipients.
- throw sfrEx;
- }
- catch (SmtpException sEx)
- {
- // TODO: Handle exception
- // When SMTP Client cannot complete Send operation.
- throw sEx;
- }
- catch (Exception ex)
- {
- // TODO: Handle exception
- // Any exception that may occur during the send process.
- throw ex;
- }
- }
- }
End of Code Snippet
Labels:
C#
Subscribe to:
Posts (Atom)