Incoming E-Mail

This is a discussion on Incoming E-Mail within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello. First of all, you are all more knowledgeable than me, and I would be EXTREMELY grateful for your help. ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-05-2006
Tim McGurk
 
Posts: n/a
Default Incoming E-Mail

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!


Reply With Quote
  #2 (permalink)  
Old 12-06-2006
Andrew Bailey
 
Posts: n/a
Default Re: Incoming E-Mail


"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


Reply With Quote
  #3 (permalink)  
Old 12-06-2006
Norman Peelman
 
Posts: n/a
Default Re: Incoming E-Mail

"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



Reply With Quote
  #4 (permalink)  
Old 12-06-2006
Norman Peelman
 
Posts: n/a
Default Re: Incoming E-Mail

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...
> > 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 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
>
>
>



Reply With Quote
  #5 (permalink)  
Old 12-07-2006
Tim McGurk
 
Posts: n/a
Default Re: Incoming E-Mail

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.. .
>> "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 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
>>
>>
>>

>
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0