serendipity wrote:
Try this:
Code: Select all
//Attach to Thunderbird
//Get item's path and names
$items=chr(39).get("SelectedItemsPathNames",",").chr(39);
//Get item's names
$itemnames=chr(39).get("SelectedItemsNames",", ").chr(39);
//Get item's names for body
$itemnamesbody=chr(39).get("SelectedItemsNames","<br>").chr(39);
//Insert values into Thunderbird syntax
$TB_Syntax= chr(34)."subject=$itemnames,body=$itemnamesbody,attachment=$items".chr(34);
//Attach selected files to thunderbird's compose window
//This method uses command prompt.
run "cmd /c cd /d C:\Program Files\Mozilla Thunderbird\ & thunderbird -compose $TB_Syntax";
This works flawlessly. Is it possible to add the word Emailing: before the names of the files on the subject of the e-mail?? I have tried this, but it does not come out okay. I tried:
"subject=Emailing: $itemnames, body etc., but in the subject it only appears the name of the first file.
And the last one, that I do not even have idea if it is possible is to number the files in the body of the e-mail. Eg.:
1) file.pdf
2) file.tif
3) file.jpg, etc.
I have appreciated very much your help, because now I have a button in my toolbar that attached the selected files to my e-mail client. Thank-you again.
Impvgo