我一直在为使命召唤制作一个实时修改工具,并试图制作一个报告错误系统,但我收到了这个错误:
我为此使用的代码如下:
private void button4_Click(object sender, EventArgs e)
{
// Create the mail message
MailMessage mail = new MailMessage();
// Set The Addresses
mail.From = new MailAddress("brinkerzbhtests@gmail.com");
mail.To.Add("brinkerzbhtests@gmail.com");
// Login to that email
// Set The Content
mail.Subject = "RTM Tool Bug";
mail.Body = textBox1.Text;
// Send The Message
SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
NetworkCredential info = new NetworkCredential("brinkerzbhtests@gmail.com", "PasswordNotBeingGivenHere");
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.EnableSsl = true;
try
{
smtp.Send(mail);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
完整帮助屏幕的图片: