MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Newsletter subscriptions  (Mono Support )

Viewed 20820 time(s), 14 post(s) 7/11/2011 8:18:25 PMby monolith
monolith

monolith

7/11/2011 8:18:53 PM
Is there a subscription form for users to sign-up to receive newsletters?

If so, is it possible to provide a list of roles (that represent each newsletter list) the user can select to be a member of?
This content has not been rated yet. 
46 Reputation 5 Total posts
denis

denis

7/11/2011 9:10:54 PM
Not in the demo site, but it is very easy - you just need to add users to the specific role(s), and than you can choose roles for which the newsletter is to be sent in the admin panel.
Do you need a code sample illustrating this scenario?
This content has not been rated yet. 
7207 Reputation 956 Total posts
khorvat

khorvat

7/11/2011 9:19:37 PM
Hi,

One thing you need to understand while working with MonoX newsletter is that this isn't an automatic newsletter content generation system. So to send the newsletter admin (or any other role that you have set up for this task) needs to create a newsletter, add the user roles to the newsletter and send it to users in these roles. To do that you need to access the administration area and perform above tasks.

At the moment MonoX doesn't have automatic newsletter content generation and send out, this feature is on our feature list and will be available in one of the upcoming releases.

I need to mention that you can easily develop such a functionality on top of existing MonoX infrastructure. I'll ask one of our support team members to provide you with a sample soon.

I hope this will give you a better overview of the MonoX newsletter functionality.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
monolith

monolith

7/12/2011 12:48:52 PM
Manually adding members to roles in order to subscribe them to one or more newsletters would be difficult to manage. I hope the ability to create subscription forms will be available soon. In addition, it would be nice if I can add more than one "role" (newsletter) to the subscription form that the user can select to be a member of. For example, on the subscription form, I would like to make available multiple newsletters the user can subscribe to such as:

Please select the newsletter/s you would like to subscribe to:
- Business management newsletter
- Marketing newsletter
- Sales newsletter
- Accounting newsletter
This content has not been rated yet. 
46 Reputation 5 Total posts
khorvat

khorvat

7/12/2011 1:34:19 PM
Hi,

you don't need to add users manually to roles you can develop small Web Part (module) where user can choose for them self what newsletter they will subscribe to. As for multiple roles on one newsletter, yes you can add more than one role to the newsletter. We will provide you with the sample code that you can use.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
yousaid

yousaid

7/13/2011 11:00:04 PM
@ Denis
Can you post the code for the Newsletter signup you mentioned?
Ideally, a visitor enters their info and hit subscribe. An email is sent to them with an unsubscribe link.
The unsubscribe is required (by law) here in the US.
cheers,
yousaid

This content has not been rated yet. 
206 Reputation 36 Total posts
khorvat

khorvat

7/14/2011 6:45:38 AM
Hi,

we are preparing the sample code and it will be available here (and in next MonoX version) today COB.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

7/15/2011 10:27:14 PM
Hi,

we have completed the newsletter subscription sample module (thanks to Ivan who wrote it), you can find it attached. Please note that sample Web part isn't fully styled so you will have to re-style it your self. Module will allow web site administrators to add newsletter roles to subscription module so users can subscribe to these newsletters. Also it will allow users to unsubscribed from these roles. When user is subscribed he will receive an e-mail which will contain the unsubscribe information and link as mentioned by the yousaid.

Beside the attached code you will have to add the below line to the module so it can work as expected:
public static readonly UrlParam<ShortGuid> NewsletterUnsubscriptionId = new UrlParam<ShortGuid>("NewsletterUnsubscriptionId");

If you have any problems with module implementation please get back to us. If you need additional explanation of the attached code Ivan will explain everything to you in Monday.

Regards
  
This content has not been rated yet. 
15993 Reputation 2214 Total posts
yousaid

yousaid

7/17/2011 10:33:42 PM
Greetings,
I tried to implement the new codes but it failed.
Here is what I did
After downloading and unzipping the new files, I copied the downloaded files to the following folders.
(i) App_Templates > Default > GenericTemplates and inside GenaricTemplates, I put NewsLetterSubscriptionmail.htm

So I now have a folder that looks like this.
App_Templates >>> Default >>> GenericTemplates >>>NewsLetterSubscriptionmail.htm
(ii) Then under MonoX folder Inside Resources, I placed the contents of the Resource folder from the download.

(iii) Then under Samples >>> WebPartSample, I create a folder named Newsletter and inside this folder I put
NewsletterSubscription.ascx, NewsletterSubscription.ascx.designer.cs, NewsletterSubscription.ascx.cs
Issues:
After completing these steps, I login as as admin and try to open the WebParts catalog, but it fails with error..
Question:
Can you please give directions on how to use the modified code? I mean, the folders to move the new files to or perhaps, folder structure.
cheers,
yousaid
This content has not been rated yet. 
206 Reputation 36 Total posts
khorvat

khorvat

7/18/2011 8:19:24 AM
Hi,

you need to compile your solution or at least the sample we have provided you with so Newsletter subscription assembly can be stored inside the bin folder and loaded when application starts.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
1 2