Welcome back Stephan!
Hope to see your great work and contribution again here in TW forum!

Cheers
Mohammad

On Monday, July 1, 2019 at 3:57:15 PM UTC+4:30, Stephan Hradek wrote:
>
> 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 mailto-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
>
> Tiddler "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 mailtex. So $list is requiredt:
>
> <$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/5983f179-4226-485c-811b-0d917f3981bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to