How to Create an Email Form with OWS - Issue 49
Last Post 03/20/2010 9:13 PM by CelesteT. 6 Replies.
Author Messages
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
09/21/2009 6:07 AM
    Add any comments or questions regarding the How to Create an Email Form with OWS tutorial from Issue no 49
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Fozzy
    Nuke Active Member
    Nuke Active Member
    Posts:28


    --
    09/29/2009 10:07 PM
    Hey guys, Anther awesome month of tutorials and I thank you for your contribution.
    I want to learn how to create modules in DNN and I am looking at create a form like this but I need to take the form and attach the content of the form into a .PDF then send the form in an email.
    Can OWS help me to accomplish this? If so can you guide me in the right direction to learn how?

    Thanks in advance!
    Paul Deschenes
    Nuke Active Member
    Nuke Active Member
    Posts:25


    --
    10/18/2009 9:00 AM
    OWS does have ability to integrate with other DLL libraries like one that would output your page to a PDF. That is for an advanced developer and can be done by creating your own custom action in OWS. BUT.....

    You could try this, although I've never attempted it. You could output the form results to a formatted plain blank page using the print.ascx page in the OWS tutorials. Then, use the "Save To PDF" module from www.bizmodules.net on this form result page to allow the user to output the file to a PDF.

    OWS does not have a built in PDF rendering engine.
    Paul Deschenes
    DNN Creative OWS Tutor
    Subscribe to the website
    Kris Kristensen
    Nuke Newbie
    Nuke Newbie
    Posts:1


    --
    11/18/2009 8:28 AM
    Hi Lee,

    Great article on the OWS SendMail - loved it, just what I need however, how do I get the OWS take the "To" address from the one already configured in DNN 5? I'm referring to the email address you put when you register a new portal?

    Cheers, and thank you for such great articles - very easy to follow and learn from.
    Paul Deschenes
    Nuke Active Member
    Nuke Active Member
    Posts:25


    --
    11/30/2009 6:31 AM
    Kris,

    To do this, you need to do a Query action to determine which user is the portal administrator in Admin>Settings menu.

    Create a Query action called "GetAdminEmail", then set the query to:

    select TOP 1 email from users join portals on users.userid = portals.administratorid
    where portals.portalid = [*portalid]

    This query will get the email address for the user set as the portal administrator for the CURRENT portal.

    Then set the TO field in the email action to [email,GetAdminEmail]
    Paul Deschenes
    DNN Creative OWS Tutor
    Subscribe to the website
    CelesteT
    Nuke Newbie
    Nuke Newbie
    Posts:7


    --
    03/20/2010 8:53 PM
    Hi, Thanks for the great tutorial. I was wondering how I can hard code a "to" email address into the form. Thanks, Celeste.
    CelesteT
    Nuke Newbie
    Nuke Newbie
    Posts:7


    --
    03/20/2010 9:13 PM
    Hi, Was also wondering if there was a way to incorporate ReCaptcha (www.recaptcha.net) into the email form? Thanks.


    ---