Hi!
After quite some time I'm back to using TiddlyWiki (hopefully) a bit more
regularly.
Seems my kowledge has rusted over the last 2 years. I cannot figure out how
to get solved what I want to achieve.
The idea is the following: I have to create some customer information and
in that process I have to send mails.
So while I document what I do I also want to enter the customer's data into
my TW. The idea I have is that TW will already prepare the mail for me.
This works but I have to copy & paste the mail. Much easier would be to
click on a prepared mailt-link which will invoke my mail program, prefilled
with all the data.
Here is an example as to how far I came:
Tiddler "data"
name:recipient
text:the text to send
Tddler "MailText"
Hi<<the_recipient>>!
Thisisyour text:<<the_text>>.
Regards
Tiddler PreparedMail
<$set name="the_recipient" tiddler="data" index="name">
<$set name="the_text" tiddler="data" index="text">
<pre>
{{MailText}}
</pre>
</$set>
</$set>
In order to be able to create a mailto-link, I will have to apply encodeuri
to the mailtext:
<$set name="the_recipient" tiddler="data" index="name">
<$set name="the_text" tiddler="data" index="text">
<$list filter="[[MailText]get[text]encodeuri[]]">
<<currentTiddler>>
</$list>
</$set>
</$set>
Unfortunately encodeuri does not receive the "Transclusionresult" but the
plain MailText and so the output of the las example will be:
Hi%20%3C%3Cthe_recipient%3E%3E!%0A%0AThis%20is%20your%20text:%20%3C%3Cthe_text%3E%3E.%0A%0ARegards
And not the required
Hi%20recipien!%0A%0AThis%20is%20your%20text:%20the%20text%20to%20send.%0A%0ARegards
Is there any way I can solve this? Can I, for exampl, get the fully
transcluded text into a variable so that I can create a mailto-link?
Many tia…
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e4b83b19-ffc4-4f00-9968-9ae7b218253f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.