Hey everybody.
I'm searching way to send a simple automated e-mail from web form. At the moment I'm using following simple code with button.
private void mail_Click(obje ct sender, System.EventArg s e)
{
MailMessage mail = new MailMessage();
mail.To = "e-mail";
mail.From = "e-mail";
mail.Subject = "this is a test email.";
mail.Body = "this is a test email";
SmtpMail.Send( mail );
}
All the messages goes to mailroot\queue folder. I don't know what to do to solve this.
I'm searching way to send a simple automated e-mail from web form. At the moment I'm using following simple code with button.
private void mail_Click(obje ct sender, System.EventArg s e)
{
MailMessage mail = new MailMessage();
mail.To = "e-mail";
mail.From = "e-mail";
mail.Subject = "this is a test email.";
mail.Body = "this is a test email";
SmtpMail.Send( mail );
}
All the messages goes to mailroot\queue folder. I don't know what to do to solve this.
Comment