G
Guest
I am not using vs studio 2.0 I have 1.1
I have a WSS document event handler that works on a document insert, I want
to use system.web.mail to get to sendmail and put out an email. Document
event handlers are written with C# class library which does not allow me to
reference system.web.mail. I use use the interface with a web control and
reference the web control from within the document event class but when I
compile I get
c:\Documents and Settings\cmello\My Documents\Visual Studio
Projects\SISWorkflow\bin\Debug\SendMailCtrl.dll Referenced class
'SendMailCtrl.DocLibSendMail' has base class or interface
'System.Web.UI.WebControls.WebControl' defined in an assembly that is not
referenced. You must add a reference to assembly 'System.Web'.
I am thinking that is because in the SendMailCtrl dll there is a method that
uses SendMail and the reference to System.web.mail inside the web control
project is the reason that I cannot create a new instance of the web control
object in my C# document event library and call the method to send mail.
Help!! please I need to have a document library insert event send my custom
email to users who have alerts set without having to go into CAML and rewrite
the alert notification AARGH
I have a WSS document event handler that works on a document insert, I want
to use system.web.mail to get to sendmail and put out an email. Document
event handlers are written with C# class library which does not allow me to
reference system.web.mail. I use use the interface with a web control and
reference the web control from within the document event class but when I
compile I get
c:\Documents and Settings\cmello\My Documents\Visual Studio
Projects\SISWorkflow\bin\Debug\SendMailCtrl.dll Referenced class
'SendMailCtrl.DocLibSendMail' has base class or interface
'System.Web.UI.WebControls.WebControl' defined in an assembly that is not
referenced. You must add a reference to assembly 'System.Web'.
I am thinking that is because in the SendMailCtrl dll there is a method that
uses SendMail and the reference to System.web.mail inside the web control
project is the reason that I cannot create a new instance of the web control
object in my C# document event library and call the method to send mail.
Help!! please I need to have a document library insert event send my custom
email to users who have alerts set without having to go into CAML and rewrite
the alert notification AARGH