Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Conditionally Send Email
Last Post 05-04-2010 08:02 AM by Joe Craig. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Joe CraigUser is Offline
going with the flow
going with the flow
Posts:58
Avatar

--
05-03-2010 02:20 PM

    I'm looking for a way to send an email conditionally.

    Specifically, I want to run a SQL query and, depending on the result, send the email.

    Is there a way to do that?

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    05-04-2010 07:09 AM
    Well, can you state the SQL query here? Is this SQL query going to be on a combobox or textbox? Depending on which field type it is, you can either create an email based on that question's response or use client side javascript to set a hidden field and based it on that hidden field's response. -- David
    Joe CraigUser is Offline
    going with the flow
    going with the flow
    Posts:58
    Avatar

    --
    05-04-2010 08:02 AM

    Sure.

    The form collects names and email addresses.  When the user clicks the submit button there are 3 completion events.

    1.  Dynamic SQL Statement: If the user's email address has not already been entered in our database table, it is added.  This is a

    if (select count(email) from myTable where email='$(Email)')=0

    INSERT INTO  {databaseOwner}[{objectQualifier}NewsletterSubscribers]([UniqueCompletionID],[ResponseDateTime],[UserID],[IPAddress],[FirstName],[LastName],[Email],[State])VALUES ('$(UniqueCompletionID)',GetDate(),$(UserID),'$(IPAddress)','$(FirstName)','$(LastName)','$(Email)','$(State)')

    2.  Email Event.  I'd like to send the email only if the first event resulted in a database insert

    3.  Redirect Event.  This one always redirects.

    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi