Corion is right. Your question is very unclear. I guess asking for a perl module/script to do mail forwarding is the equivalent of asking for a perl module to change a lightbulb. It could be done, but there exist easier ways. In most mail servers that run in a UNIX environment, simply having a file named ".forward" in your home directory would forward any mail to the contents of the file if they were an email address, or to a shell process that you could specify via |. I doubt there's something similar to this in the Win32 environment, but setting up mail forwarding on an Outlook server seems like it should be very trivial. So writing a script seems to be kind of pointless (in my opinion).

But, assuming you really want to forward mail, you'd need to do the following:

So as you can see, this is alot more work than it's worth. I agree that there's always more than one way to do things, but just because there's a harder way doesn't mean you have to take it.

BlueLines

Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.

In reply to Re: does MIME::Lite or Net::SMTP provide forward mail function ..... ANY OTHER OPTIONS ?? by BlueLines
in thread does MIME::Lite or Net::SMTP provide forward mail function ..... ANY OTHER OPTIONS ?? by Ah CHU

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.