I'm trying to develop a contact form as a web user control. I have googled my way to some code and suggestions and reach a point where I think I should use umbraco.library.SendMail from within my C# code. To do this I suspect that I should use some umbraco namespace? I have tried to simply add
using umbraco;
but I realize that as I do only have Umbraco on my remote web host that won't do me no good. I suspect I could install Umbraco locally as well, but would prefer to avoid it, if possible. So the question is if I can copy some DLLs from my remote server to achieve the same thing? If so:
Which DLLs? I have tried umbraco.dll, but putting it through the Object Browser of VS shows no sign of any SendMail method so I suspect that might not be the correct DLL?
What else would I need to do on my local PC? Register the DLLs or add them to my project in some way?
Sending email with umbraco.library.SendMail in C#
I'm trying to develop a contact form as a web user control. I have googled my way to some code and suggestions and reach a point where I think I should use umbraco.library.SendMail from within my C# code. To do this I suspect that I should use some umbraco namespace? I have tried to simply add
using umbraco;
but I realize that as I do only have Umbraco on my remote web host that won't do me no good. I suspect I could install Umbraco locally as well, but would prefer to avoid it, if possible. So the question is if I can copy some DLLs from my remote server to achieve the same thing? If so:
Which DLLs? I have tried umbraco.dll, but putting it through the Object Browser of VS shows no sign of any SendMail method so I suspect that might not be the correct DLL?
What else would I need to do on my local PC? Register the DLLs or add them to my project in some way?
Other recommendations?
Hi Jonas
Also include businesslogic.dll and cms.dll - can't remember, which one contains the Umbraco library functions though :)
/Jan
is working on a reply...