Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async Task<Boolean> a()
- {
- public void button63_Click(object sender, EventArgs e)
- {
- //GayEmail f2 = new GayEmail();
- //f2.Show();
- string headeremail = "";
- string bodyemail = "";
- string email = "";
- int messagee = 240;
- email = emailget.Text;
- bodyemail = bodyemailget.Text;
- headeremail = headeremailget.Text;
- new Thread(() =>
- {
- for (int cycle = 0; cycle < 30; cycle++)
- {
- messagee = messagee - 30;
- statusspamemail.Text = "Status: Идет спам";
- label103.Text = "Messages: " + messagee;
- if (cycle == 0)
- {
- statusspamemail.Text = "Status: Ждет почту";
- label103.Text = "Messages: 0";
- }
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- var stringChars = new char[3];
- var random = new Random();
- for (int i = 0; i < stringChars.Length; i++)
- {
- stringChars[i] = chars[random.Next(chars.Length)];
- }
- var finalString = new String(stringChars);
- using (MailMessage mail = new MailMessage())
- {
- mail.To.Add(email);
- mail.Subject = headeremail + finalString;
- mail.Body = bodyemail + finalString;
- mail.IsBodyHtml = true;
- //mail.Attachments.Add(new Attachment("C:\\file.zip"));
- using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
- {
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- }
- using (MailMessage mail = new MailMessage())
- {
- mail.To.Add(email);
- mail.Subject = headeremail + finalString;
- mail.Body = bodyemail + finalString;
- mail.IsBodyHtml = true;
- //mail.Attachments.Add(new Attachment("C:\\file.zip"));
- using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
- {
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- }
- using (MailMessage mail = new MailMessage())
- {
- mail.To.Add(email);
- mail.Subject = headeremail + finalString;
- mail.Body = bodyemail + finalString;
- mail.IsBodyHtml = true;
- //mail.Attachments.Add(new Attachment("C:\\file.zip"));
- using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
- {
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- }
- using (MailMessage mail = new MailMessage())
- {
- mail.To.Add(email);
- mail.Subject = headeremail + finalString;
- mail.Body = bodyemail + finalString;
- mail.IsBodyHtml = true;
- //mail.Attachments.Add(new Attachment("C:\\file.zip"));
- using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
- {
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- }
- using (MailMessage mail = new MailMessage())
- {
- mail.To.Add(email);
- mail.Subject = headeremail + finalString;
- mail.Body = bodyemail + finalString;
- mail.IsBodyHtml = true;
- //mail.Attachments.Add(new Attachment("C:\\file.zip"));
- using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
- {
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- }
- using (MailMessage mail = new MailMessage())
- {
- mail.To.Add(email);
- mail.Subject = headeremail + finalString;
- mail.Body = bodyemail + finalString;
- mail.IsBodyHtml = true;
- //mail.Attachments.Add(new Attachment("C:\\file.zip"));
- using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
- {
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- }
- using (MailMessage mail = new MailMessage())
- {
- mail.To.Add(email);
- mail.Subject = headeremail + finalString;
- mail.Body = bodyemail + finalString;
- mail.IsBodyHtml = true;
- //mail.Attachments.Add(new Attachment("C:\\file.zip"));
- using (SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587))
- {
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- }
- }
- }).Start();
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment