Attachment with Server Mail Event


Badge +4
Hi All,

I am back as usual .

The following is the error displayed in the Service Manager when I try to send an attachment using the SERVER MAIL EVENT :

System.Web.HttpException: Invalid mail attachment 'C:Documents and SettingssanjepauDesktopPragati.zip'.
at System.Web.Mail.MailAttachment.VerifyFile()
at System.Web.Mail.MailAttachment..ctor(String filename)
at K2Code17867.SMTPFunction(ServerEventContext K2)
at K2Code17867.Main(ServerEventContext K2)

Could U please guide me as to how to remove this error and send an attachment also .

I am using ASP.NET 2.0 with K2.NET 2003 SP4.
Pls reply ASAP.

Thanks and Regards.

2 replies

Badge +8
It seems like the location of your attachment is not valid. The code is looking for a file on your desktop, and if your K2 Server is NOTrunning on your own machine, the location of the file is wrong. Thats the first place I would check and rectify.

The following post will also give you some information on repairing specific process instances:
http://forum.k2workflow.com/viewtopic.php?t=1443
Badge +4
Hi dc,

Thanks for replying .

I would look into it.

Reply