CoreBOSBB
Adding User Fields to Email Templates - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: User Support (https://discussions.corebos.org/forumdisplay.php?fid=6)
+--- Thread: Adding User Fields to Email Templates (/showthread.php?tid=719)



Adding User Fields to Email Templates - partnerwerk - 09-08-2017

Hello there,

I created an email template using the variables $users-first_name$ $users-last_name$ in the greeting line.

I expected these variables to be replaced to the active CRM users name and thus my name in that line when the email is sent. But the variables do not get replaced.

Is that a bug or did I miss out on something?

Best regards
Henning ( $users-first_name$ $users-last_name$ Smile )

PS: Also I would like to customize the output of $custom-currentdate$ in emails to reflect German common usage. Any hint how to do that?


RE: Adding User Fields to Email Templates - joebordes - 09-08-2017

This should work as you describe. I just tried in my development install and it did work correctly.

I had a look and it seems we added that at the end of june:

https://github.com/tsolucio/corebos/commit/091029736c55fe6626ac5cf83d67b8216776d794

is your install up to date?


RE: Adding User Fields to Email Templates - joebordes - 09-08-2017

I just added a global variable that will permit you to give some basic formatting to the date. It isn't the correct solution (which is much more complex) but it should get you the basic functionality you are looking for:

https://github.com/tsolucio/corebos/commit/44308dd92ee2683a36b869cb93c3d374a08f0d28

let us know how it goes


RE: Adding User Fields to Email Templates - partnerwerk - 09-08-2017

Hi Joe,

thanks for your quick reply.
The update did it for the user variables.
The global variable works fine for the date in emails.

Thank you very much!!!
Henning