Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sends file to Otago University printing server via email. For linux systems. Accepts file path as argument
echo "" | mailx -v -r "" -s "Printing" -a "$1" -S smtp="" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="" -S smtp-auth-password="PASSWORD" -S ssl-verify=ignore

This comment has been minimized.

Copy link
Owner Author

@nathanhollows nathanhollows commented Jul 29, 2017

To use as an Elementary OS Contract create the file uni-print.contract in /usr/share/contractor

with contents

[Contractor Entry]
Description=Send files using Mail  
Exec=sh /FILEPATH/ %f   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.