hello <BR>I am trying to create automated email at the end of Database addtion . <BR>For tht <BR>i have written following code <BR><BR><%@ Import Namespace="System.Web.Mail" %> <BR><BR>and at the End when data is added in Database , i have written follwoing code to send mail to the user<BR><BR>Dim objMailMessage as MailMessage <BR>objMailMessage=new MailMessage <BR>objMailMessage.From=txtEmail.Text <BR>objMailMessage.To="[email protected]" <BR>objMailMessage.Subject="Thank You For Enquiry" <BR>objMailMessage.Body="We will Be Back with Details" <BR>objMailMessage.Priority=MailPriority.High <BR><BR>SmtpMail.Send(objMailMessage) <BR><BR><BR>it generates an error saying tht SendUsing Configuration is Invalid....... What is Wrong with the code........ or do ineed to make any modifications <BR>DhirajHi Dhiraj,<BR><BR>You have to create an instance of the mailmessage like this:<BR>Dim objMailMessage as New MailMessage.<BR>And I am missing the objMailMessage.smtpserver.<BR><BR>Tutorial: http://www.4guysfromrolla.com/webtech/080801-1.shtml<BR><BR>Good luck,<BR><BR>Ultimahello<BR>Thanks for the help<BR>I need to work out still on corrections<BR>Dhiraj