Home > Archive > PHP Language > May 2006 > PHP to print content from emails
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PHP to print content from emails
|
|
| Sam Alexander 2006-05-24, 6:58 pm |
| Hello everyone,
We currently have a program written in VB6.0 in Outlook that watches the
inbox for messages that arrive and based on the To field print the body of
the message plus a header graphic to a specific printer on our network. So
say a message came to Marketing@company.com it would print to marketingptr.
THis program does sit on VB6.0 and was written by someone who's no longer
here, and me not being a fan of Microsoft programming would like to rewrite
this in either PHP or c++. I have experience with PHP and have even used
some of the printing features of PHP before, but not sure how to tie this
into email.
Any suggestions or anyone know of a canned program or piece of code that'll
run on Linux that does this? Thanks --
Also note, all the printers are network Jet Direct printers (HP).
Thansk --
Sam
---
Sam Alexander - sam.alexander(at)sidebandbbs(dot)com
icq: 5386757 [] AIM/Y!: samalex1701 [] Skype: samalex01
Jabber: samalex/sidebandbbs.com [] MSN: samalex@gmail.com
"Data is not information, Information is not knowledge, Knowledge is not
understanding, Understanding is not wisdom." -- Cliff Stoll
--- Synchronet 3.13b-Linux NewsLink 1.84
--[SideBand BBS - telnet://sidebandbbs.com]--
| |
| Colin McKinnon 2006-05-24, 6:58 pm |
| Sam Alexander wrote:
<snip>
> So say a message came to Marketing@company.com it would print to
> marketingptr.
>
> THis program does sit on VB6.0 and was written by someone who's no longer
> here, and me not being a fan of Microsoft programming would like to
> rewrite
> this in either PHP or c++. I have experience with PHP and have even used
> some of the printing features of PHP before, but not sure how to tie this
> into email.
>
Your post rather begs the question of whether you are fan of MS Operating
systems? I'd find it a lot easier to write this kind of thing on a *nix box
than on one of Redmond's. It certainly has a lot of bearing on how you'd
approach the problem.
C.
| |
| Sam Alexander 2006-05-26, 6:58 pm |
| To: Colin McKinnon
Re: Re: PHP to print content from emails
By: Colin McKinnon to alt.comp.lang.php on Wed May 24 2006 08:21 pm
> From Newsgroup: alt.comp.lang.php
>
> Sam Alexander wrote:
>
> <snip>
>
> Your post rather begs the question of whether you are fan of MS Operating
> systems? I'd find it a lot easier to write this kind of thing on a *nix box
> than on one of Redmond's. It certainly has a lot of bearing on how you'd
> approach the problem.
>
> C.
Hi C.
Actually the PHP script to do this task would sit on Linux, and that I
forgot to mention. I am no fan of MS products in general, and being a web
guy who lives in PHP for personal projects, I'm trying to get more PHP use
at work. The folks before me wrote many of the scripts we use now in VB,
but my thinking is if I can rewrite these scripts in PHP they'll be abit
easier to manage. Plus our current Internet site, which is ColdFusion, I
hope to rewire in PHP as well.
Our internal Intranet is using Sharepoint, and that I can't change... and
everytime I mess with Sharepoint I wish it were PHP as Microsoft's way of
doing Sharepoint is just totally crazy! What little I've done in C# I
like, but when every aspect of the website is being stored in a database,
even the actual aspx files themselves, that's just overcompliated for no
reason.
Anyway, our web server is on Windows and I can't change that, but I do have
a Linux server I use for scripting with PHP. The email/printing script I
mentioned sits on a WIndows NT 4.0 server, and I hope to rewrite this in
PHP to get rid of that server. I have many other scripts various folks
have written over the years I'll start rewriting in PHP as well, and if
these plus our Internet site is PHP, that'll just be too !
Thanks for your reply, and hopefully this explained the situation abit
better.
Sam
---
Sam Alexander - sam.alexander(at)sidebandbbs(dot)com
icq: 5386757 [] AIM/Y!: samalex1701 [] Skype: samalex01
Jabber: samalex/sidebandbbs.com [] MSN: samalex@gmail.com
"Data is not information, Information is not knowledge, Knowledge is not
understanding, Understanding is not wisdom." -- Cliff Stoll
--- Synchronet 3.13b-Linux NewsLink 1.84
--[SideBand BBS - telnet://sidebandbbs.com]--
|
|
|
|
|