opensourcer has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: sending mails daily/weekly from perl
by atcroft (Abbot) on Mar 07, 2005 at 05:48 UTC

    My first question is, "what have you tried so far?"

    My first suggestion is to use the cron(8) system to run the process that will be sending the messages. This will allow you to focus on writing code to send emails, without having to worry too much about how to trigger sending them.

    As to sending the emails, there are a number of modules you can use-modules that come to mind having been mentioned for this purpose include the Email::* and Mail::* series of modules, as well as the MIME::Lite module. These modules generally include example code to illustrate how to do so. (Example below is taken directly from the documentation for MIME::Lite.)

    HTH.

Re: sending mails daily/weekly from perl
by hubb0r (Pilgrim) on Mar 07, 2005 at 05:33 UTC
    I use Mail::Sendmail for my mail sending needs. Other than that, your question is a bit vague... you would need to write a program of some sort that would generate something to send?!?
Re: sending mails daily/weekly from perl
by Anonymous Monk on Mar 07, 2005 at 12:41 UTC
Re: sending mails daily/weekly from perl
by macPerl (Beadle) on Mar 07, 2005 at 13:16 UTC

    ditto ...

    Create the perl script(s) which generate the email(s)

    (If it is v. simple mail, you can also use sendmail from within your script)

    Use cron to schedule execution of those scripts