Hello There, Guest! Login Register


[Verizon] Get text notifications from the bot!
#1
           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)
 
Reply
#2
Doesn't just have to be verizon, it can be any email or provider if you know their text domain.

This is great, going to try it out thank you!
 
Reply
#3
how to do it ? any help how to add this?
 
Reply
#4
(2017-05-17, 12:42:07)Precious how to do it ? any help how to add this?

I would believe you treat it as a footer in your script and put it under the body.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)