Author: Tigers21 | Posted on: 6/16/2010 1:43:02 PM | Views : 267

If I send emails with this code, is it then a risk that it will enter the junk-mail-box for the reciever?

protected void btnSubmit_Click(object sender, EventArgs e)
{
try
{ MailMessage message = new MailMessage(txtFrom.Text, txtTo.Text, txtSubject.Text, txtBody.Text);
SmtpClient emailClient = new SmtpClient(smtp.mydomain.com);
emailClient.Send(message);
litStatus.Text = "Message Sent";}
catch (Exception ex)
{ litStatus.Text="error..."} }

...

Go to the complete details ...