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/
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?
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.
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.
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?