email textexpander

Discussion, questions and support.
Post Reply
Jim
Posts: 5
Joined: Feb 21st, ’17, 03:59

Post by Jim » Feb 22nd, ’17, 05:11

Hi,

I am looking for a little help automating some emails I have. I used the macro (manual text input field) to input a Month, Day, and time for a generic appointment email. Is there a way I can easily create something that also puts the same subject on all the emails? All in such a way that if I use it in an email it automatically puts the subject on the email, requests Month, Day, Time and then creates the generic appointment email?

Thanks, Jim
User avatar
Tom
Posts: 796
Joined: Nov 24th, ’15, 23:39

Post by Tom » Feb 22nd, ’17, 11:01

This is one way to do this:

Code: Select all

Code: Select all
to:="[email protected]"
cc:="[email protected],[email protected]"
bcc:=" "
subject:="Hello"
body:="Best regards,%0A%0AJohn"
Run mailto:%To%?cc=%cc%&bcc=%bcc%&subject=%Subject%&body=%body%
Jim
Posts: 5
Joined: Feb 21st, ’17, 03:59

Post by Jim » Feb 23rd, ’17, 05:42

Thanks! Is it possible to alter something like this so I can also input something dynamically into the body of the msg whenever I run it? I tried to do something like input a variable using the macro but could not get it work. For example, "Thanks for calling. I will call back <date/time you enter>", when I run it, I just need to enter the date and time.
User avatar
Tom
Posts: 796
Joined: Nov 24th, ’15, 23:39

Post by Tom » Feb 23rd, ’17, 11:50

One way:

Type: Command

Code: Select all

InputBox, UserInput,, Enter a day and time,,,130
to:="[email protected]"
cc:="[email protected],[email protected]"
bcc:=" "
subject:="Hello"
body:="Thanks for calling. I will call back on " UserInput ".%0A%0ABest regards,%0A%0AJohn"
Run mailto:%To%?cc=%cc%&bcc=%bcc%&subject=%Subject%&body=%body%
Jim
Posts: 5
Joined: Feb 21st, ’17, 03:59

Post by Jim » Feb 25th, ’17, 00:22

This worked great. Thank You! One last thing, can a command like this also send out pre-defined textexpander strings - ex signature and or a URL to a destination? I tried using " insert another item" but it did not seem to work.
Jim
Posts: 5
Joined: Feb 21st, ’17, 03:59

Post by Jim » Feb 26th, ’17, 21:26

One thing I did notice was that when I use this, for some reason my default outlook signature is not added to the email like normal.
User avatar
Marko
Posts: 1726
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Feb 26th, ’17, 22:12

In the next release, we will allow "Insert Another Item" macro to work properly in a Command mode.

Regarding a signature, there may be some solutions:
https://www.google.si/search?q=mailto+signature
Jim
Posts: 5
Joined: Feb 21st, ’17, 03:59

Post by Jim » Mar 2nd, ’17, 00:28

Thanks! I did find this online - it seems to work(not really sure why - outside my comfort level). The only issue for me is that if I have a big message, the formating is not easy.

Code: Select all

m := ComObjActive("Outlook.Application").CreateItem(0)
m.Subject := "Hi There"
m.To := "[email protected]"
m.Display
myInspector := m.GetInspector
wdDoc := myInspector.WordEditor
wdRange := wdDoc.Range(0, wdDoc.Characters.Count)
wdRange.InsertBefore("This is the body")
User avatar
Tom
Posts: 796
Joined: Nov 24th, ’15, 23:39

Post by Tom » Mar 2nd, ’17, 20:03

Thanks Jim for posting this. :D
Post Reply