Solved

Email->Printer software for Linux or Windows

Posted on 2014-02-24
5
310 Views
Last Modified: 2014-03-14
Does anyone know of a way to set up Email->Printer on either a Linux or a Windows machine?

I have a network printer, and I have a Windows server, and a Linux server.

I want one of these servers to check for new emails via POP3 on a special email address I will set up (e.g. printer@mycompany.com). When a new email arrives, it prints the email, along with any attachments inside the email (e.g. if there's a PDF inside the email, it prints the PDF). After it finishes printing, it discards the email.

Basically this way I can forward an email to the special email address and it causes it to get printed out my printer.

I can imagine cobbling something together in Linux with a combination of Fetchmail and CUPS, but I was hoping there was something a little more 'turn-key' out there.
0
Comment
Question by:Frosty555
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 2

Expert Comment

by:sarvjita
ID: 39884733
Add a rule in outlook,
1. select apply this rule on messages i receive, then click next
2. select criteria as required or applicable, next
3. select 'print it'
4. select 'delete it'
5. finish
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 39884997
sarvjita's post should do the job - if you use Outlook (and Windows). Which email client do you use? As for attachments, there is no easy way I know of to set that up. You could try it with a macro (using AutoHotkey for example), but I can see all kinds of problems, e.g. a spreadsheet that's set up for an A3 printer, and you only have A4.

Some printers are able to print emails sent to them (but not the attachments). What printer do you have?
0
 
LVL 31

Author Comment

by:Frosty555
ID: 39886333
Hi guys,

I'm currently using Google Apps for my email. I didn't know that Outlook could automatically be configured to print emails like that, that's pretty nifty, but I'm looking for a server-side solution that will run on my server, not inside of Microsoft Outlook or an email client on my personal computer or via macros that require control of the client computer (after all, if my personal computer is turned off, or I take it with me somewhere then nothing will print)

The printer is a Brother MFC 9120CN. I know some HP printers have the ability to do this (it's basically what their "ePrint" smartphone app does behind the scenes). Basically I was trying to "roll my own" version of this functionality. I also have a number of clients who would be very interested in having similar functionality.

Alternatively, is there a way in Windows or Linux to set up a "hot folder" where anything dropped into that folder is printed, and then deleted from the folder? I could probably work with that and set up fetchmail to drop emails into that folder.
0
 
LVL 21

Accepted Solution

by:
wyliecoyoteuk earned 250 total points
ID: 39887333
Batchnprint pro in windows, in linux, it is possible to print to anything using CUPS, pipe it to a script, print to a pdf printer, etc.
I use a script to print to fax using cups and hylafax, not terribly complicated.
There are probably scripts out there to poll a folder and print anything in it.
In windows filemonkey will do that.
0
 
LVL 38

Assisted Solution

by:hdhondt
hdhondt earned 250 total points
ID: 39887374
In Windows something along the following lines should work - for PDFs. I cannot test it on the PC I'm at, as I do not have enough privileges.

:restart
If not exist "c:\Print_Dir\*.pdf" goto :waitawhile
"C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe" /t c:\Print_Dir\*.pdf "
del c:\Print_Dir\*.pdf
::  delay 30 seconds by pinging a non-existent IP address; change 30000 to suit
:waitawhile
ping 1.1.1.1 -n 1 -w 30000 > nul
goto restart

It should be easy to write an equivalent Linux script. I do not know of a way to print _any_ filetype from a command line - you need to specify the application to print it. Hence, you could change the script to check for all the expected filetypes individually, and add the appropriate command to print it. For .TXT files you could use:

notepad /p *.txt
0

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question