P
Pkant
Hi ,
I want to sent an Email out of an C# Programm.
I am using this code :
private void button3_Click(object sender, System.EventArgs e)
{
MailMessage myMail = new MailMessage();
myMail.From = "Torben";
myMail.To = "(e-mail address removed)" ;
myMail.Subject = "HALLO" ;
myMail.BodyFormat = MailFormat.Text ;
myMail.Body = "Moin";
// myMail.Attachments.Add (@"c:\test.txt");
SmtpMail.SmtpServer = "smtp.myserver.com";
SmtpMail.Send(myMail);
}
When I am starting the Program SmtpMail.Send <<<<--- overloaded , and the
email don´t arrive.
I want to sent an Email out of an C# Programm.
I am using this code :
private void button3_Click(object sender, System.EventArgs e)
{
MailMessage myMail = new MailMessage();
myMail.From = "Torben";
myMail.To = "(e-mail address removed)" ;
myMail.Subject = "HALLO" ;
myMail.BodyFormat = MailFormat.Text ;
myMail.Body = "Moin";
// myMail.Attachments.Add (@"c:\test.txt");
SmtpMail.SmtpServer = "smtp.myserver.com";
SmtpMail.Send(myMail);
}
When I am starting the Program SmtpMail.Send <<<<--- overloaded , and the
email don´t arrive.