Page 1 of 1

Send email with attachment without mail client

PostPosted: Sat Apr 27, 2019 5:28 pm
by nickym998
Hi there,

I am trying to create a paperless invoice system that stores and organises my files and also emails any new files to a specific email address but without using an email client.

My current workflow is as follows:-

Scan document with scansnap i1500 to a dropbox folder on a Mac server running high sierra. Once the file hits dropbox, Hazel will sort and rename file into a subfolder structure in dropbox. Before this happens, I need to email the file to a specific email address that then enters my accounts package.

I know Hazel can run AppleScript, shell script or Automator actions before moving the file but somehow I need to email this file without using a mail client on the server.

Can anyone help with a script that would do this or perhaps suggest a better method for my workflow? The only way I can get the file into the accounts package is to drag and drop the file into a web interface for the accounts package or by using a special email address.

thanks in advance for any help

Nick

Re: Send email with attachment without mail client

PostPosted: Mon Apr 29, 2019 4:09 pm
by Mr_Noodle
You would probably need a shellscript which uses a commandline mail client to send the file. Not sure if there are any such scripts here but you should search around the net at large.