Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
insert file in outlook as signature
#1
Hello,

I would like to define a key to print the contents of a text file, does anybody know a way to do this? Using the option run "file" "" "print" results in a text file, but I want to insert an (extensive) signature in Outlook.

Chantal
#2
Try this
Macro
Code:
Copy      Help
str mySigFile="$desktop$\test.txt"
str s.getfile(mySigFile)
MailMessage "" "" "" "" s

It creates new message in your default email program with text from the file.

Or this
Macro
Code:
Copy      Help
str mySigFile="$desktop$\test.txt"
str s.getfile(mySigFile)
s.setsel

It pastes text from the file in current window.
#3
Thanks, this works for .txt files. Is there also a way to do this with .doc files?
#4
Save the doc as htm, and use this macro to paste the file.
Macro
Code:
Copy      Help
str mySigFile="$desktop$\test.htm"
str s.getfile(mySigFile)
str sh.format("Version:1.0[]StartHTML:00000033[]%s" s)
sh.setsel("HTML Format")
#5
Yes, that worked (I left out the string Version:1.0[]StartHTML:00000033). Many thanks!


Forum Jump:


Users browsing this thread: 1 Guest(s)