Try our conversational search powered by Generative AI!

Include recipient attributes in .aspx site

Vote:
 

I want to send an .aspx site to a recipient list, and include a link on the page, with the email adress or the ID as a query string.

Any ideas on the best way to get the information from the database, and include it in the link for each user?

#27829
Feb 10, 2009 9:52
Vote:
 

Hi Kari,

Not quite sure if I get it, but what I think you want to do is to be able to personalize the page the mail recipients are going to?!

In that case you would use the built in variable system, which enable you to send user specific data in the mail - such as an ID. This is pretty well documented in the developer guide, found here:

http://world.episerver.com/en/Documentation/Categories/Modules/EPiServer-Mail/ 

#27830
Edited, Feb 10, 2009 10:28
Vote:
 

Yes, that is what I want to do. Would I have to configure the mail content in the HTML editor in order to use the variable system?

I was originally thinking of configuring the content as an .aspx site, but I think using the HTML editor will work as well..

 

One more thing.. I can't find EPiServer Mail in the list for ordering developer licences, is there no developer licence for EPi Server Mail?

 

 

#27837
Feb 10, 2009 11:46
Vote:
 
EPiServer Mail runs on Developer Licenses for EPiServer CMS, Create+ and Relate+.
#27872
Feb 11, 2009 13:38
Vote:
 

Did you manage to get the variable attribute system running?

From EPiServer Mail developers guide:

AttributeCollection Attributes - The collection of attributes of the recipient. These attributes are used for substitution of variables in the mail body. The variables in the mail body must be in the format §a§, §b§, §c§ etc. and are substituted by the corresponding attribute where the order of attributes in the attribute collection coincides with the alphabetic order of the variable name.

For example; if you import a list with this format:

email;firstname;lastname;profileid
john.doe@example.com;John;Doe;7
you can create a message saying
Hello Mr §a§ §b§. Click <a href="http://example.com/myPage.aspx?id=§c§" title="§a§'s page">here</a> to visit your page.
 
#27901
Feb 12, 2009 13:36
Vote:
 

Well, I haven't got it to work just the way I want it yet..

I include the link in the HTML editor, and when I try it in the preview, it works fine, and takes me to tha page I want - including the query sting (of course it hasn't got the right value yet). But when I send the mail, the link does not work properly.

The link looks like this in the editor:

<a href="/mailform.aspx?id=§email§>Link...</a>

 

When I recieve the mail, and click on the link, the page mailform.aspx is displayed, but the query string is removed - and I am not able to get the value of the attribute. If I view the mail source, the link in the mail looks like this:

<a href="http://mysite/EPiServerMail/GoMail.aspx?op=false&mid=4&id=test%40test.no&url=%2fmailform.aspx%3fid%3dtest@ttest.no">Link...</a>

I also notice that when I look at the click statistics, it says 0 clicks, even though I have clicked the link several times.

#27988
Feb 16, 2009 16:34
Vote:
 
When you are using a recipients email in a URL, use §emailurl§ instead of §email§. Doing so should result in a valid URL and therefore also make the click count work as expected.
#28011
Feb 17, 2009 13:25
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.