I just got mailgun set up with parse-server on heroku.
Here is the kind of mail a user gets for mail verification when a new account is created:
Hi,
You are being asked to confirm the e-mail address blablah#example.com
with TheGreatApp
Click here to confirm it:
https://thegreatapp.herokuapp.com/parse/apps/XXXXX/verify_email?token=YYYYYY&username=xyz
That does the job, but it would nice to be able to customize the message a little bit.
I already tried following some post I found on SOF, but with no success.
So what is the proper way to do that? And is it possible to have the message in several languages?
You can provide custom templates in the mailgun-adapter configuration, as described in the docs.
Currently there is no built-in way to support multiple languages. And since Mustache is used as templating engine, it's also not possible to have any custom i18n logic inside the templates. However, recently there was a discussion in the parseopensource Slack channel where some users were talking about plans to contribute such a feature.
Related
I want to get all of my users to see announcements. As you already know, we can't force everyone to use a dashboard that would have the announcements located in it as outlined here: https://www.powerobjects.com/blog/2011/11/22/adding-announcements-to-the-dashboard-in-crm-2011/. I could add this component to the most frequently-used dashboards, but I'm not going to get complete compliance. Too many people use user-defined dashboards and views. Further, not all of our users use email or other correspondence consistently, so my channels of communication for updates to the system are limited. My best bet was to create a popup upon login containing announcements, akin to the "pending email" warning, which would appear upon login regardless of any other conditions:
I've dug around to try and see where that warning comes from, in hopes of reverse engineering it to build a new component... but I just couldn't figure it out. I've seen options on how to disable or circumvent it, which naturally is the opposite of what I'm trying to do.
Is something like this possible?
Unfortunately this is a missing most wanted piece/feature even today in latest 365 versions.
We are using Web resources in global dashboards to socialize such thing, as announcements are deprecated. We cannot circumvent personal dashboards as default scenario.
We are planning to explore Learning path for this requirement, but that’s not applicable for your version.
I am customizing the email template for password-reset. I wish to access the logo from email resources directory (i.e) \themes\\email\resources\img\marketing.jpg
This can be possible for login module via ${url.resourcesPath}
Some one please point out me how to access the email resource path in password-reset.ftl
version keycloak-4.0.0.Final
I ran into this problem myself, and after some searching I found this email thread:
Hi community,
I am looking for a way to add images to custom keycloak email themes. Our company template HTML uses the images sent as attachment. I would therefore like to attach the required images to the email. If this is not possible, what would be the correct way to add images to the HTML template?
Unfortunately the current documentation does not state anything of it:
http://www.keycloak.org/docs/3.3/server_development/topics/themes.html
Regards
Jonathan
I don't think you can do this out of the box today, but you should be able
to create a custom email sender provider that does it. Look at docs for
details on creating custom providers (as well as quickstarts on examples).
Then look at EmailSenderProvider and the implementations in our repo.
Hi,
If your goal is to display a kind of logo or some image in the mail, you
can include it as an embedded image using
<img src="data:image/png;base64,.... "/>
It's not perfect as some email clients (like gmail) don't display this kind
of image but it can do the trick before finding a better solution.
BR, Jérôme.
Hi,
Thanks for your suggestions. After reading a lot about email client support for image embedding in emails (e.g. the solution from Jérôme is blocked by Outlook), I think the best solution is to implement my own email sender provider and link the images to the attachments (using CID) .
#Stian Thorgersen: My understanding is that I will have to override the EmailTemplateProvider based on the FreemarkerEmailTemplateProvider (or can I just extend from this one?) to fetch attachments from a path e.g. /attachments/ and pass them to the EmailSenderProvider, am I correct?
Regards
Jonathan
So, whilst the documentation says you can use <img src="${url.resourcesPath}/img/image.jpg"> in your custom themes, this doesn't actually work for email templates.
UPDATE (2022): The documentation has changed over time, so this might be possible now, though I haven't verified that: https://www.keycloak.org/docs/latest/server_development/#adding-an-image-to-a-theme
Is it possible to add some code or something else to make it possible that whenever I type a hashtag followed by a number that this will be replaced by a url?
My requirement is whenever some developer mention a ticket number like #1234 in his chat post into a channel I want to make this clickable and directly opens a url like myticketsystem.com?id=1234.
If I understand correctly, you're looking to implement an auto-linking similar to how GitHub handles things like Fixes issue #xxxx? It isn't possible to implement this in Teams today, it isn't possible to inject your own logic into the composition rendering pipeline.
What you could do however is build a Compose Extension. This wouldn't replicate the GitHub experience but it would certainty make it easier to insert links to tickets into the compose editor. It could also be a more powerful tool, allowing users to search the ticketing system rather than having to know the number before writing the post.
I am currently developing a web application using Laravel and AngularJs. One of the requirement in document module is, that they want to create, update documents like Google Docs or Zoho Docs.
I googled but couldn't find a solution.
How can I implement it? It seems like that it is a big task.
It is a really big deal. There is an example flow how an implementation could work like:
keep track every change (for example keydowns) on client side
create a patch message
send the patch to a backend server
notify all of the other users that the content has been modified and send the patch to apply
apply the patch on the client
repeat each and every time something is changing
Of course the backend has to accept messages from all of the clients and distribute it to all of the other ones which has the same document open. Google Docs is working in a similar way you can check it in the developer tools of Chrome for example or check operational transformation.
Edit
Use the API of one of the mentioned services instead of building an own module. https://www.zoho.eu/docs/zoho-docs-api.html
For goole docs you could use the following with angular js:
https://developers.google.com/drive/v3/web/examples/
I'm setting up some transactional email fun in our Codeigniter app via integrating with Sendgrid.
I've got things setup and ready to move forward with creating all of the specific transactions/emails, but I was wondering about the most efficient and/or elegant way of doing so.
It seems a bit convoluted to include the appropriate email code in each of the functions. To call a specific function from a clean and separated email controller would require me to use AJAX (so as to not cause a redirect).
Is there some way that I'm not considering currently that would help balance things, namely cleanliness and separation along with coherency and ease?
Thanks for any thoughts-
Not sure about the specifics of your application structure. But you could always create a model function and call that from the functions in your controller.
CodeIgniter also comes with some built in functionality to help you send emails, specifically setting some of your email settings in a config file so you don't have to rewrite that. http://ellislab.com/codeigniter/user-guide/libraries/email.html
I actually wrote a blog post about this not too terribly long ago. Have a look at this:
http://blog.sendgrid.com/using-sendgrid-with-php-codeigniter/
Essentially, codeigniter comes with an awesome email library that makes it easy to send stuff over SMTP, so I just show you how to hook into that.