I have successfully created a working desktop file that send (one or more) attachments to thunderbird, with from, to fields and with, as a body, a file html. This is the file content:
[Desktop Entry] Type=Service Actions=SendToMailRcp Encoding=UTF-8 MimeType=application/octet-stream X-KDE-ServiceTypes=KonqPopupMenu/Plugin X-KDE-Priority=TopLevel X-KDE-Submenu=allega a [Desktop Action SendToMailRcp] Name=posta elettronica... Exec=thunderbird -compose "attachment='$(echo %F | sed 's/\\ \\//,\\/\\//g')',to=[some-account],subject=[my-subject],message='path/to/myfile.html',from=[some-my-account]" Icon=thunderbird
Now I'd like to add a function for the date, for inserting autmatically today date. I tried with javascript, but javascript is not working in e-mail; I tried with php (message='http://localhost/path/to/file.php'), but if I try to get a php file in thundebird body I don't get anything.
How can I, if possible, get the date in body message?
date -R
(or$(date -R)
in your applied case) will give you the current date in standard format, where to go from there depends on where you need it.