I am getting following error while sending an email from the contact us form of a website
System.Net.Mail.SmtpException: Cannot get IIS pickup directory. at System.Net.Mail.IisPickupDirectory.GetPickupDirectory() at System.Net.Mail.SmtpClient.Send(MailMessage message) at UICBLL.Mail.MailSettings.SendMail(String ToAddress, String CCAddress, String BccAddress, String SubjectText, String BodyText, Boolean IsBodyHtml, MailPriority mailPriority, String[] MailAttachment) at UICPresentation.Forms.Client.contact.sendMail()
Any ideas? I can not get hold of an IIS as this is a shared hosting. Any work around?