Skip to content

Instantly share code, notes, and snippets.

@maxandersen
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save maxandersen/b35c558ffbf67b4673ec to your computer and use it in GitHub Desktop.

Select an option

Save maxandersen/b35c558ffbf67b4673ec to your computer and use it in GitHub Desktop.

Revisions

  1. maxandersen revised this gist Feb 20, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Install "sendEmail"

    on OSX I did that with 'brew install sendEmail'
    on OSX I did that with 'brew install sendemail'

    on fedora/red hat 'yum sendEmail' should work too (not tested).

  2. maxandersen revised this gist Jul 21, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Install "sendEmail"

    on OSX I did that with 'brew sendEmail'
    on OSX I did that with 'brew install sendEmail'

    on fedora/red hat 'yum sendEmail' should work too (not tested).

  3. maxandersen created this gist Jun 12, 2014.
    16 changes: 16 additions & 0 deletions readme
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    Install "sendEmail"

    on OSX I did that with 'brew sendEmail'

    on fedora/red hat 'yum sendEmail' should work too (not tested).

    http://caspian.dotconf.net/menu/Software/SendEmail/

    Then use the script below and do this in the dir with your pdf's for the script (it will just take all *.pdf).

    sh sendreceipts.sh <barcode>

    Note: you need to escape the barcode i.e. if I had DTID-99$CPID-353560\
    I use

    sh sendreceipts.sh DTID-99\$CPID-353560\\
    2 changes: 2 additions & 0 deletions sendreceipts.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    sendEmail -f me@somecompany.com -u "$1" -s smtp.company.com -t expenses@company.com -m "/peace" -v -a *.pdf