Home > Archive > PHP Language > December 2006 > Incoming E-Mail
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]
|
|
| Tim McGurk 2006-12-05, 6:57 pm |
| Hello.
First of all, you are all more knowledgeable than me, and I would be
EXTREMELY grateful for your help.
I need a script that does the following:
Automatically logs into a particular e-mail address, reads the subject
heading in each message (which will be a different e-mail address) and
forwards the messages on to the appropriate address.
I've looked at IlohaMail and some of the other similar apps to try to figure
out how to do it on my own, but honestly it's all beyond my comprehension.
I don't expect anybody to just present me with complete code to do the job
(although I'd love it if you did!), but if somebody could give me a basic
step-by-step of what I need to do to make it happen (i.e, "first you connect
to server, check out these functions, then you read the e-mail, check out
these functions" etc), I would appreciate it greatly.
Thanks!
| |
| Andrew Bailey 2006-12-06, 3:58 am |
|
"Tim McGurk" <nicetim33@yahoo.com> wrote in message
news:12nb725mgcajj4a@corp.supernews.com...
> Hello.
>
> First of all, you are all more knowledgeable than me, and I would be
> EXTREMELY grateful for your help.
>
> I need a script that does the following:
>
> Automatically logs into a particular e-mail address, reads the subject
> heading in each message (which will be a different e-mail address) and
> forwards the messages on to the appropriate address.
>
> I've looked at IlohaMail and some of the other similar apps to try to
> figure out how to do it on my own, but honestly it's all beyond my
> comprehension.
>
> I don't expect anybody to just present me with complete code to do the job
> (although I'd love it if you did!), but if somebody could give me a basic
> step-by-step of what I need to do to make it happen (i.e, "first you
> connect to server, check out these functions, then you read the e-mail,
> check out these functions" etc), I would appreciate it greatly.
>
> Thanks!
>
Hi Tim,
Outlook Express (The default email program that comes with Windows) does
what you need. Look under Tools > Message Rules.
Andy
| |
| Norman Peelman 2006-12-06, 7:58 am |
| "Tim McGurk" <nicetim33@yahoo.com> wrote in message
news:12nb725mgcajj4a@corp.supernews.com...
> Hello.
>
> First of all, you are all more knowledgeable than me, and I would be
> EXTREMELY grateful for your help.
>
> I need a script that does the following:
>
> Automatically logs into a particular e-mail address, reads the subject
> heading in each message (which will be a different e-mail address) and
> forwards the messages on to the appropriate address.
>
> I've looked at IlohaMail and some of the other similar apps to try to
figure
> out how to do it on my own, but honestly it's all beyond my comprehension.
>
> I don't expect anybody to just present me with complete code to do the job
> (although I'd love it if you did!), but if somebody could give me a basic
> step-by-step of what I need to do to make it happen (i.e, "first you
connect
> to server, check out these functions, then you read the e-mail, check out
> these functions" etc), I would appreciate it greatly.
>
> Thanks!
>
>
Tim,
You will probably want to download one of the php mail handling classes
( from http://www.phpclasses.org/browse/class/2.html ) to do what you want.
1) if you can, find a class that can read from and post to a mailbox.
2) if not then find a class that does each and use both
3) read in a message
4) extract the email address from the subject line
5) create/alter the From: line
6) send back out
7) loop back to 3
Actually reading mailboxes is easy, it's dealing with messages that can be
mulitpart/mime encoded that takes a little bit more work.
Norm
--
FREE Avatar hosting at www.easyavatar.com
| |
| Norman Peelman 2006-12-11, 7:01 pm |
| Correction below:
--
FREE Avatar hosting at www.easyavatar.com
"Norman Peelman" <npeelman@cfl.rr.com> wrote in message
news:MMydh.8651$yj1.6877@tornado.tampabay.rr.com...
> "Tim McGurk" <nicetim33@yahoo.com> wrote in message
> news:12nb725mgcajj4a@corp.supernews.com...
> figure
comprehension.[color=darkred]
job[color=darkred]
basic[color=darkred]
> connect
out[color=darkred]
>
> Tim,
> You will probably want to download one of the php mail handling
classes
> ( from http://www.phpclasses.org/browse/class/2.html ) to do what you
want.
>
> 1) if you can, find a class that can read from and post to a mailbox.
> 2) if not then find a class that does each and use both
> 3) read in a message
> 4) extract the email address from the subject line
> 5) create/alter the To: line <---- corrected!
> 6) send back out
> 7) loop back to 3
>
> Actually reading mailboxes is easy, it's dealing with messages that can be
> mulitpart/mime encoded that takes a little bit more work.
>
> Norm
> --
> FREE Avatar hosting at www.easyavatar.com
>
>
>
| |
| Tim McGurk 2006-12-11, 7:01 pm |
| Thanks Norman!
I'll give it a look...
"Norman Peelman" <npeelman@cfl.rr.com> wrote in message
news:qjGdh.13983$%u3.6241@tornado.tampabay.rr.com...
> Correction below:
>
> --
> FREE Avatar hosting at www.easyavatar.com
> "Norman Peelman" <npeelman@cfl.rr.com> wrote in message
> news:MMydh.8651$yj1.6877@tornado.tampabay.rr.com...
> comprehension.
> job
> basic
> out
> classes
> want.
>
>
|
|
|
|
|