Page 1 of 1

Send E-Mail with custom tokens

PostPosted: Fri Jun 12, 2015 3:58 am
by vloryan
Hi guys,

I would like to send an e-mail with custom tokens from a pdf-file out of hazel. Any chance to do this? I googled here and there, found a few things, but I got stuck. Would be great if someone out there could help me solving this!

I would like to use some tokens in the subject, some in the body.

Thanks for your help!
Flo

Re: Send E-Mail with custom tokens

PostPosted: Fri Jun 12, 2015 5:33 am
by vloryan
This here (http://www.maclife.com/article/columns/terminal_101_sending_email_through_command_line) shows me how to send emails via script. The only thing I need is passing the tokens in there, somewhere, somehow...

Re: Send E-Mail with custom tokens

PostPosted: Fri Jun 12, 2015 8:25 pm
by Mr_Noodle
You can't really do it with a shellscript but you can via AppleScript. Search the help for it as it will indicate how to send attributes into the AppleScript.