Skip to content

Instantly share code, notes, and snippets.

Max J. Rodriguez B. Jaxmetalmax

Block or report user

Report or block Jaxmetalmax

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SendMailLogFile.cs
public static void EnviaCorreoInterno(string cAsunto, List<string> destinatarios, string cBody, List<string> cAdjuntos, int port, bool ssl, string usr, string pass, string host, string correo)
{
var mail = new MailMessage();
bool succesSend = true;
mail.From = new MailAddress(correo);
var smtp = new SmtpClient
{
Port = port,
View fileCopy.cs
// FROM http://www.codeproject.com/Tips/777322/A-Faster-File-Copy
/// <summary> Time the Move
/// </summary>
/// <param name="source">Source file path</param>
/// <param name="destination">Destination file path</param>
public static void MoveTime (string source, string destination)
{
DateTime start_time = DateTime.Now;
FMove (source, destination);
long size = new FileInfo (destination).Length;
You can’t perform that action at this time.