private void button6_Click(object sender, EventArgs e) { Mail mail = new Mail(); mail.To = "*****@*****.**"; mail.From = "*****@*****.**"; mail.Subject = "teste"; mail.Body = "teste de envio de email sobre a SSL"; //KhronusReturn ret = MailUtilities.send("email-ssl.com.br", "*****@*****.**", "k070213r", 587, true, mail); //funciona KhronusReturn ret = MailUtilities.send("email-ssl.com.br", "*****@*****.**", "k070213r", 587, false, mail); MessageBox.Show(ret.Message); }
private void button7_Click(object sender, EventArgs e) { Mail mail = new Mail(); mail.From = txtDe.Text; mail.To = txtPara.Text; //mail.Bcc = "*****@*****.**"; mail.Subject = txtAssunto.Text; mail.Body = txtCorpo.Text; //mail.AttachmentList.Add(@"D:\desenvolvimento_old\analise de sistemas\nfe\documentacao\NT_2016_002_v1.51.pdf"); //KhronusReturn ret = MailUtilities.send("smtp.gmail.com", "*****@*****.**", "fev@030277@", 587, true, mail); KhronusReturn ret = MailUtilities.send(txtSmtp.Text, txtUsuario.Text, txtSenha.Text, NumberUtilities.parseInt(txtPorta.Text), chkSsl.Checked, mail); MessageBox.Show(ret.Status + " " + ret.Message); }