Skip to Content
This question has been flagged
2 Replies
3689 Views

I did a template (Mako) and it has this line:

<a href="http://localhost:30070/invitation-response?var1=${object.encripted_url}&var2=yes">I'll go</a>

When I click on the preview, it looks great, I click on the link and it redirects me where I want to go:

http://localhost:30070/invitation-response?var1=c78d921d980261c80dde30804875b6058de124f7&var2=yes

However, if I load this template to send the email, I receive this link:

http://localhost:30070/invitation-response?var1=${object.encripted_url}&var2=yes

And I have other problems too:

<% set variable = 'Hello friend' %>
<p>${variable}</p>

If I click on preview, I can see Hello friend, but when I send the email, I get a blank line.

Did anyone experience this problem? Any help would be very appreciated. Thank you in advance.

EDIT

I was checking more and more and I'm getting the wrong emails only when the composition_mode is 'mass_mail'. If I send the email to a unique person, the result is OK. Can anyone tell me why, please?

Avatar
Discard
Best Answer

You can try updating the branch through bazaar or git to the last version (it depends on what you use) :)

Avatar
Discard
Author

Thank you @devel! I'm using bazaar, and I've just updated the whole ocb-addons branch (bzr pull), but still same result.

You must update the ocb-server branch as well! greetings

Author

Now it works!!!! ¡¡¡¡Mil gracias!!!!

Best Answer

Just a thought but have you checked the translation of your template in the language (traduction) of the partner for who you are generating this template ?

P.

Avatar
Discard
Author

Hello Pierre, any thought is welcome! Unfortunately, I don't understand what do you mean. Can you explain it more detailed, please?