Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Extracting email addressesExtracting email addresses
Previous
 
Next
New Post
9/9/2007 9:34 AM
 

Hi,

I want to send Newsletters using Publisher.  I already have my registered users optionally signing up for Newsletters which then assigns the user to the Newsletter security role.  How can I extract the email addresses of all Newsletter users so that I can paste their email addresses into Publisher.

I know that DNN has a Newsletter feature, but creating the Newsletter in Publisher and then sending via the Newsletter feature is proving to be just too much hard work.  So I thought, as Publisher has an email Newsletter feature, I would try it the other way round.  However, I obviously don't want to have to manually cut and paste each individual email address.

Your help is much apreciated.

Thanks

Liz
DNN 4.3.7

 
New Post
9/9/2007 10:25 AM
 

go to SQL in Host menu and execute:

SELECT Email, DisplayName
FROM {databaseOwner}[{objectQualifier}Users] U
   INNER JOIN {databaseOwner}[{objectQualifier}UserRoles] UR ON U.UserID = UR.UserID
   INNER JOIN {databaseOwner}[{objectQualifier}Roles] R ON UR.RoleID = R.RoleID
WHERE (RoleName = N'Newsletter') AND (R.PortalID = 0)

replace 0 at the end with the ID of your portal


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/9/2007 11:32 AM
 

Thanks for your reply.  I figured it must be possible.  However, the SQL results in an error.  I presume dnn_Roles.RoleName = N'Subscribers' should actually be dnn_Roles.RoleName = 'Newsletter' but that still results in an error. 

Can you please advise.

Thanks

Liz

 
New Post
9/9/2007 3:58 PM
 

What's the error?

 

 
New Post
9/9/2007 5:02 PM
 

oops, sorry, forgot to replace my settings with variables. Corrected this in my post above.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Extracting email addressesExtracting email addresses


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out