PRISM Mail Sending Fail's System.Web.HttpException: Invalid mail
attachment 'C:\Documents and Settings\rameshk\Desktop\test.txt'. at
System.Web.Mail.MailAttachment.VerifyFile() at
System.Web.Mail.MailAttachment..ctor(String filename) at
ASCX_MailSending.imgbtnSend_Click(Object sender, ImageClickEventArgs e)
Ignacio Machin ( .NET/ C# MVP ) - 06 Jul 2007 14:19 GMT
Hi,
> PRISM Mail Sending Fail's System.Web.HttpException: Invalid mail
> attachment 'C:\Documents and Settings\rameshk\Desktop\test.txt'. at
> System.Web.Mail.MailAttachment.VerifyFile() at
> System.Web.Mail.MailAttachment..ctor(String filename) at
> ASCX_MailSending.imgbtnSend_Click(Object sender, ImageClickEventArgs e)
And your question is?
Also the Message of the exception will be usefull, check thta the file exist
and that you have permission to read it