Hi,
I'm not sure if this will help but I've done something like this in the past. Unfortunately you have no choice but to create your ourn smtp server and have it listen for your forwarded mail. Your application will have to be listening on port 25 (default) and have an MX record created for it. That said, another (easier) way to accomplish what you want to do is to set up a POP account that your script will check periodically, as Adam stated. If there is new mail inthe account then it should trigger the program to do something.. HTH, G At 12:01 PM 7/9/2002, you wrote: >I only know how to do it in *nix environments. An example line from my >alias file used with the RT system developed in perl. > >support: "|/web/tyco/www/rt/bin/rt-mailgate --queue support --action >correspond" > >All mail sent to <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] will get >piped to the rt-mailgate application. That application can then access >the information as STDIN. > >If you add a line to the aliases (/etc/aliases, typically) on a *nix >machine, don't forget to use the 'newaliases' command to have your changes >updated, or it will not recognize those changes. >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf Of [e]agL�rT >Sent: Tuesday, July 09, 2002 9:47 AM >To: Adam Frielink; [EMAIL PROTECTED] >Subject: RE: forwarding an email address to a perl program and saving the >message!!! > >sorry, not smtp, i mean pop.. anyway, as i said, i do not want to make >something like pop server, but you told a solution about it. is there >anyway without poping? i saw that thing on a web site, it was a modul for >a program (greymatter), and there was something to do that, not poping, >just getting the new message. i mean, forwarding the new mail directly to >the program. the program use STDIN and something like that. i thing i need >to configure the mail alias to send the message to the program. could i >explain? >----- Original Message ----- >From: <mailto:[EMAIL PROTECTED]>Adam Frielink >To: <mailto:[EMAIL PROTECTED]>[e]agL�rT ; ><mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] > > >Sent: Tuesday, July 09, 2002 4:54 PM >Subject: RE: forwarding an email address to a perl program and saving the >message!!! > >Have you considered using POP from your application? I am sure in Win32 >it is possible to have the smtp server pipe the mail to a program, but I >only know how to do that on *nix. Consider POPing your message and then >process the contents as necessary. Put it in a loop. Depending on how >often you was to process your mail accounts, just have it POP on that >interval. >-----Original Message----- >From: ><mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]]On Behalf Of [e]agL�rT >Sent: Tuesday, July 09, 2002 4:46 AM >To: [EMAIL PROTECTED] >Subject: forwarding an email address to a perl program and saving the >message!!! > >hi all.. i want to forqard an email address to my perl program and get >message from the mail. but i dont know which modul to use and what to >write inside of my program. can someone help me? not: i am not trying to >do something like smtp server, i do not want the program to check mails, i >want to send the new message directly to the program! thanks... _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
