Skip to content

Instantly share code, notes, and snippets.

Embed
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 "EMAIL@student.otago.ac.nz" -s "Printing" -a "$1" -S smtp="smtp.office365.com:587" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="EMAIL@student.otago.ac.nz" -S smtp-auth-password="PASSWORD" -S ssl-verify=ignore printmeblack@otago.ac.nz
@nathanhollows

This comment has been minimized.

Copy link
Owner Author

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]
Name=@Print  
Icon=mail-send  
Description=Send files using Mail  
MimeType=!inode;  
Exec=sh /FILEPATH/otago-print.sh %f   
X-GNOME-Gettext-Domain=pantheon-mail 
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.