Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Berling 30 posts 50 karma points
    Nov 27, 2011 @ 21:52
    Jonas Berling
    0

    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?

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 27, 2011 @ 22:30
    Jan Skovgaard
    0

    Hi Jonas

    Also include businesslogic.dll and cms.dll - can't remember, which one contains the Umbraco library functions though :)

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies