SamKr
1/26/2016 - 10:04 AM

ParameterizedThreadStart

ParameterizedThreadStart

var t = new Thread(new ParameterizedThreadStart(o =>
{
    var mailer = new SendMail();
    var body = $@"Error bericht op computer {Environment.UserDomainName}\{Environment.MachineName} onder gebruiker {Environment.UserName}:" + Environment.NewLine + Environment.NewLine;
    body = body + msg;

    mailer.SendAuthenticated("sam@hdservices.nl", "procwatch@hdservices.nl", "smtp.mail3000.nl", "2527",
        "apps@mail3000.nl", "9kPvU$", "Error bericht van ProcWatch!", body);
}));

t.Start();