Easy Sign-Up for Newsletter

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/5/2009 8:12:54 PM
Gravatar
Total Posts 131

Easy Sign-Up for Newsletter

Hey Joe,

I'm looking to implement an easy way for people to sign up for a newsletter without registering, by just providing their email and First and Last optionally.  After looking at the schema and code, I think the easiest way would be to create a new table and save the info their, then attach to the newsletter table.  My concerns with this approach include the dynamic nature of newsletters across installations. 

(as usual, an new idea pops up as I'm writing this).  I was thinking it would be difficult to assign the proper newsletter.  But, now I think I can just read it from the table and set it via the edit / settings page.

The other approach is to actually create a registration with minimal information, ignoring the settings and email validation requirement (if set) like the Add User Page.  I would then automatically add them to the default newsletter.  Issue here is when they come back to register, I would have to address the fact they never entered a PW and already have an account.

Thought I would bounce it off you for thoughts, but between starting and ending this note, I think I'll go with option one.  Then add some manual functionality to send emails to those in my new email table.

This is somewhat common set of functionality so maybe you could add to the "wish list"

Thanks

 

8/6/2009 7:26:29 AM
Gravatar
Total Posts 18439

Re: Easy Sign-Up for Newsletter

Hi David,

If I were doing it (and I will eventually unless you do it well and want to contribute it) I would go with the second approach and build a newsletter signup module that can plug into the page. The current newsletter relies on there being a user connected to implement the required opt out links to comply with the CANSPAM laws. The user can opt out without signing in but must sign in to change their preferences or change which newsletters they subscribe to. Users can use the password recovery if needed to get.  

Internally it would first check if there is an existing user with the email and if so opt him in, otherwise we have a method in SiteUtils to create a minimal user. I use it in the store to support checkout without registration or sign in for non-download products. I create a user because orders need to be attached to a user and the user even if he did not register may recover his password and then can get to his purchase history by signing in.

Its a little more of a problem for an email sign up though to avoid automated bots creating a bunch of spam users, you would really need a captcha on the sign up form. The store scenario is a little less problem because no automated bot is going to actually spend money in the store.

We don't currently have separate fields for first and last name but I actualy plan to add those for other reasons.

Best,

Joe

8/6/2009 8:56:53 AM
Gravatar
Total Posts 131

Re: Easy Sign-Up for Newsletter

Thanks Joe, I'll give it a try with the second method and using the minimal user.  I'll integrate Captcha as well as an option.  I'll send over details when I'm done and you can choose to integrate or not.

Thanks

 

10/29/2009 7:33:14 AM
Gravatar
Total Posts 18439

Re: Easy Sign-Up for Newsletter

fyi, I just uploaded a new build on our Novell Forge download page, mojoportal-mssql-build-2009-10-29.zip

Both this site and demo.mojoportal.com are running this build, the only difference is that www.mojoportal.com uses MySql whereas demo.mojoportal.com uses MS SQL. I have only uploaded a build for MS SQL though.

Most of the main improvements for the newsletter have been implemented including a new Newsletter Sign Up feature that you can put on a page as I have done on our home page. It's also possible now to enable viewing of previously sent Newsletters as web pages. I have never yet sent a newsletter though I already have 426 subscribers. I plan to start using the Newsletter soon. If the user is not signed in then an email confirmation is sent and a link must be clicked to confirm the subscription. I'm sure there will be a lot of false submissions from web bots, I still need to implement a few things like an easy way to purge unverified records older than x days. The newsletter is only sent to verified addresses. There is also a nice new progress bar for showing the progress of mailing to a large list.

Its also possible to put <portal:Subscribe id="subscribe1" runat="server" /> in the layout.master file if you wanted the sign up on all pages. I will need to work on new documentation for the newsletter soon.

Best,

Joe

11/2/2009 5:54:17 AM
Gravatar
Total Posts 22

Re: Easy Sign-Up for Newsletter

Hi Joe,

When can I expect the MySql Build for the new Newletter Module?

Keep up the good work!!!

Yves

11/2/2009 6:42:42 AM
Gravatar
Total Posts 18439

Re: Easy Sign-Up for Newsletter

I will ship it within the next 2 weeks.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.