HostUrl in Subscription mail

Vote:
 
Hi. I'm trying to use different HostUrl's in the subscription mail. If the new item is published in English, it should use www.domainname.com, and if it's published in Norwegian, it should use www.domainname.no. How can I go about this? Is there any "built-in" method, or do I have to create my own subscriptionandler? Thanks, Frank :)
#12296
Jun 14, 2005 8:15
Vote:
 
Hi, if you use the mail provider "EPiServer standard format with Multilanguage support" since version 4.40, it is possible to set the Multilanguage page property "HostUrl" to a valid URI. Ex mailto://ep.se for each language. In your case: HostUrl___NO = mailto://www.domainname.no and HostUrl___EN = mailto://www.domainname.com
#14013
Jun 14, 2005 17:25
Vote:
 
Hi, and thank you for feedback. I want the "Read more" link on the items in the mail to point its respective HostUrl. If the items in the mail is Norwegian, it should point to "http://www.domainname.no/templates/newspage.aspx?id=999", and if it's English items, it should point to http://www.domainname.com/templates/newspage.aspx?id=999. I see through Roeder's Reflector the following statement in MultiLanguageSubscriptionMail.SendLanguage method: string text1 = (subscriptionPage["HostUrl"] != null) ? ((string) subscriptionPage["HostUrl"]) : base.Configuration.HostUrl; Does this property need be on the Subscription pagetype, or on the NewsPage (in my example above)? Thank you for any help on this issue. Frank :)
#14014
Jun 15, 2005 13:20
Vote:
 
Or am I going about this the wrong way...?
#14015
Jun 16, 2005 16:50
Vote:
 
The "Host URL" property is has to be set on the subscription page. The "Read more" link is not configurable; to get the links to different URLs you have to write your own subscription mail handler, MultiLanguageSubscription mail handler just add a EPsLang argument to the link.
#14016
Jun 17, 2005 17:18
Vote:
 
Ok, thanks. The reason I'm looking into this, is that one of our customers is experiencing problems with the subscription module in their intallation (4.41). The site is set up to use both Norwegian and English. When a subscription mail is being sent to the subscribing user, all of the links in the mail is fetched from EPsLang, as you say. But when they encounter a page that has only been published in Norwegian, the come to the login screen. Shouldn't there be any logic here that says, f.ex. the url that it already has + epslanguage=NO ?
#14017
Jun 20, 2005 9:25
Vote:
 
Hi again. I really could use some feedback on this from EP. I'm asking if the MultiLanguageSubscriptionMail you select in Admin, doesn't support publishing multilanguage pages in only 1 language? If it does, can you tell me if I have done anything wrong? I don't want to go all the way to write a new handler if it's already supported. Thank you for any assistance.
#14018
Jun 27, 2005 15:27
* 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.