Developer forum

Forum » CMS - Standard features » Email marketing with UX

Email marketing with UX

Yrsa Jensen
Reply
Hi
I have the past few days sat and worked to create a solution designed to make email marketing module more user specific.
 
The idea is that after signing up for the newsletter to be sent a flow of standard emails, these must be based on the topics each user has an interest in and that they have selected during the enrollment process.
 
There are 4 subjects (group) and 5 standard emails (pages made of razor)
 
I have succeeded in making a piece of code that works with a fixed typed email, but because I want to use placeholders so it does not go, it seems like the first interpret them after the code is executed.
 
Are there any of you have a suggestion for how else can identify the user in question
 
An example of the code

 

 string currentUserEmail = "{{EmailMessaging:Recipient.Email}}";
    
    <h1>before @currentUserEmail.Length</h1>

    currentUserEmail = "yrsa@rechnitzer.dk";

    <h1>before @currentUserEmail.Length</h1>

    @currentUserId
    @currentUserEmail
    Dynamicweb.Modules.UserManagement.User currentUser = Dynamicweb.Modules.UserManagement.User.GetUserBySql(String.Format("select * from AccessUser Where AccessUserEmail = '{0}'", currentUserEmail));


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Yrsa

Sorry about the late response.

I think you can use email personalisation to do what you want. You can setup a number of smart searches in the user management based on users preferences, and you can then set which paragraphs on the emails that should be sent to the users.

Take a look at this video which gives you an idea of how this is achieved: http://vimeo.com/130412378

BR Nicolai

 
Peter Munkholm
Reply

We watched the video with joy. I think I participated in that webinar :)

Anyway, it doesn't quite answer our needs. We need to send 1 email to multiple recipient groups. Depending on the recievers choice of groups, that he/she is a member of, differnt content will feature in the e-mail.

This is why we tried to sniff on the recipients groups on template level. Found out this is not possible.

Now we are adopting you idea of setting up different paragraphs on the newsletter, and having them be visible to different uder groups. Sadly not possible either. It seems, since the recipient isn't logged in, the system hides the content completely.

Please advice :)

 
Nicolai Høeg Pedersen
Reply

Hi Peter

You should have a number of smart searches.

  1. One for all users that needs to get the mail. I.e. users from group a and group b (This will be your recipient list)
  2. One for each "segment"
    • All users from group a that has setting x (That will contain part of the users in the first search)
    • All users from group b that has setting y
    • All users from group a that does not have setting x
    • etc.

Now, create your email and choose the first search as your recipients.

On the page with your email, setup email personalisation using the segment searches - configure which paragraphs to hide and show for each of those segments.

Now you have one mail, personalised based on user preferences.

BR Nicolai

 

You must be logged in to post in the forum