Copied to clipboard

Flag this post as spam?

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


  • Stephen 204 posts 246 karma points
    Aug 16, 2011 @ 18:48
    Stephen
    0

    Feedback form user control with Campaign monitor DLL

    Hey all,

    I'm slowing moving from creating my own bespoke CMS to using umbraco and have been experimenting with creating a control which sends feedback and also manages my campaign monitor/newsletter sign ups via thier API.

    I have a couple of questions...

    1. I've compiled the code down to a DLL and ascx file which have been copied over to the umbraco install.  I also have the compiled Campaign Monitor DLL which will be required, do i need to register that DLL in some way or is placing it in the correct folder enough?
    2. My .net code refers to the webconfig file to get the SMTP settings and send the mail, can i still do this in the same way?

    Appreciate your comments..

    S

     

  • Rich Green 2246 posts 4008 karma points
    Aug 16, 2011 @ 18:51
    Rich Green
    0

    Hey Stephen,

    Just put the dll in the /bin/ directory.

    With regards to the SMTP settings, yes, you can use the SMTP settings from the web.config file, they are just standard .NET settings.

    Rich

  • Stephen 204 posts 246 karma points
    Aug 16, 2011 @ 18:59
    Stephen
    0

    wow thanks for the speedy reply...sorted the SMTP web config issue and now working and sending the email...Campaign Monitor not working, should i try and merge the control and the CM dll's?

    Also i meant to ask the following:

    I use panels in my form to and manage thier visible status depending on the process status, is unbraco happy with this?  I only ask as i noticed the the control is displaying a little large, almost as if the hidden panels are affecting the hight of the DIV tag...

    Regards,

    Stephen

  • Rich Green 2246 posts 4008 karma points
    Aug 16, 2011 @ 19:07
    Rich Green
    0

    Hi Stephen,

    There should be no need to merge the dlls.

    What version of .NET is your site running and what version is the dll expecting?

    When you say it's not working, what do you mean exactly.

    Rich

  • Stephen 204 posts 246 karma points
    Aug 16, 2011 @ 19:11
    Stephen
    0

    Sorry i mean that the form is working but if the "SignUp" newsletter checkbox is ticked then the CM code should kick in and add the email address to CM website via the API.

    I'm running targetFramework="4.0" when developing the user control, how do i find out the .Net version of umbraco (iis?)

    Stephen

     

  • Rich Green 2246 posts 4008 karma points
    Aug 16, 2011 @ 19:14
    Rich Green
    0

    What version of Umbraco you running?

    If you're not getting an error on the site, then it seems like it might be a logic error rather than something specific to the dll.

    On a side note, have you seen this package http://our.umbraco.org/projects/website-utilities/campaign-monitor-sign-up

    Rich

  • Stephen 204 posts 246 karma points
    Aug 16, 2011 @ 19:28
    Stephen
    0

    Rich, thanks for all your help, forgot to copy across the CM app setting into the web config, all working now although validation errors dont show in red anymore.

    Thanks again.

    S

Please Sign in or register to post replies

Write your reply to:

Draft