2016-11-20, 02:21:25
MailMessage mail = new MailMessage();
mail.From = new System.Net.Mail.MailAddress("sendermail@gmail.com");
SmtpClient smtp = new SmtpClient();
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential(mail.From.Address, "senderpass");
smtp.Host = "smtp.gmail.com";
mail.To.Add(new MailAddress("1112223333@vtext.com"));
mail.IsBodyHtml = true;
string st = "Usually send reason it closed, like teleported to antiban room";
mail.Body = st;
smtp.Send(mail);
Just pop this in either Stop / Logout / Reconnect / Add map check for antiban in the bot, compile, and you will get a text message when something happens with your bot. I use this to manage 40+ bots without needing to check up on them. Good luck. You could also make a PM responder , but GMs don't really do that anymore. Also, this only works for verizon, but I am sure other carriers have emails that direct it the message to your phone number. (Smart phone probably required)