You need to sign in to do that
Don't have an account?
![Blanca Garcia Blanca Garcia](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Visualforce email template for Communities
I am trying to create a visualforce email template for the welcome email of my community.
<messaging:emailTemplate subject="Bienvenido al Portal de empleo" recipientType="User" relatedToType="Community">
<messaging:plainTextEmailBody >
To get started, go to {!Community_Url}
Thanks,
{!Organization.Name}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
I get the following error:
Error: Unknown property 'core.email.template.EmailTemplateComponentController.Community_Url'
Are recipientType="User" and relatedToType="Community" the right things to use? Where can I see the mergefields I can use?
Any help welcome!
Thanks!
<messaging:emailTemplate subject="Bienvenido al Portal de empleo" recipientType="User" relatedToType="Community">
<messaging:plainTextEmailBody >
To get started, go to {!Community_Url}
Thanks,
{!Organization.Name}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
I get the following error:
Error: Unknown property 'core.email.template.EmailTemplateComponentController.Community_Url'
Are recipientType="User" and relatedToType="Community" the right things to use? Where can I see the mergefields I can use?
Any help welcome!
Thanks!
https://salesforce.stackexchange.com/questions/63417/communities-welcome-email-set-password-link-not-working-community-url
The final template would look like this:
<messaging:emailTemplate subject="Bienvenido al Portal de empleo" recipientType="User" relatedToType="Community">
<messaging:plainTextEmailBody >
Congratulations!
This is your new Visualforce Email Template.
{!$Network.NetworkUrlForUserEmails}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
All Answers
https://salesforce.stackexchange.com/questions/63417/communities-welcome-email-set-password-link-not-working-community-url
The final template would look like this:
<messaging:emailTemplate subject="Bienvenido al Portal de empleo" recipientType="User" relatedToType="Community">
<messaging:plainTextEmailBody >
Congratulations!
This is your new Visualforce Email Template.
{!$Network.NetworkUrlForUserEmails}
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
<messaging:emailTemplate subject="{!$Label.Welcome_to_the_Community}" recipientType="User" relatedToType="Community" language="{!recipient.LanguageLocaleKey}">
<messaging:htmlEmailBody >
{!$Label.WelcomeGreeting} {!Recipient.FirstName},<br/>
And we have the link to the community login page in this anchor tag:
{!$Label.WelcomeGetStarted} <apex:outputLink value="{!$Network.NetworkUrlForUserEmails}">{!$Label.AnchorText}</apex:outputLink>
(translates to "To get started, click here"). It should work for you, just be sure to define the welcome template under your community administration page.