Hi guys,

hope you are all doing fine!

Regarding the problem from this post (https://www.drupal.org/node/2865691) I used the "Views Send"-module. The issue I want to solve is, sending an email with tokens that are included from the database and attaching PDFs to it.

This is how far I got:
With the Views Send-module (https://www.drupal.org/project/views_send) and the Mime Module (https://www.drupal.org/project/mimemail), I can use the data from the database and replace it via tokens and send an Email:

My only problem is that when I use tokens in the email: https://www.pic-upload.de/view-33026529/Unbenannt.jpg.html

the Email turns out like this:
https://www.pic-upload.de/view-33026538/Unbenannt2.jpg.html

But what I need is the Email to be send without the links ([1] http://abctravel.alfahosting.org/node/27
[2] http://abctravel.alfahosting.org/node/27) and without the numbers in Brackets)

Does anyone know why the token is replaced in this way and not just by the regular value?

Thank you very much in advance guys!

Comments

sachinsuryavanshi’s picture

Drupal_8_TTerm’s picture

Thank you so much, sachinsuryavanshi! That was super helpful :)

I just tried to figure out how to use the custom tokens-module, however this needs quite much knowledge of PHP. I tried to programm a bit, but I am not a really good PHP-programmer. Can someone give me a hint on how to fix this. Actually it should be pretty simple:
Just replace the "title"-token through a "title"-token without the number in brackets and the link that is included. Maybe someone with PHP-knowledge can help me?