http://www.perlmonks.org?node_id=609139


in reply to Re: How to send mail from Perl/Tk Program?
in thread How to send mail from Perl/Tk Program?

It sounds like I will need to include a User Email Setup screen in my program to ask the user for his/her smtp server information. Am I on track now?

Thanks!

  • Comment on Re^2: How to send mail from Perl/Tk Program?

Replies are listed 'Best First'.
Re^3: How to send mail from Perl/Tk Program?
by Bro. Doug (Monk) on Apr 10, 2007 at 14:11 UTC
    Am I on track now?

    You sure are. And, as an unsolicited tip, when you're popping windows in perlTk, try to use the same windows over and over, hiding and restoring windows as needed, changing names and labels as needed. I've found that perlTk program footprints in memory will grow as you Create new windows, which becomes a problem if the program runs too long.

    Maybe one of the other monks knows a good way to address this problem. delete() and undef() haven't cut it for me.

    Enjoy!
    Bro. Doug :wq
Re^3: How to send mail from Perl/Tk Program?
by jdporter (Paladin) on Apr 10, 2007 at 15:29 UTC

    SMTP is fine, as long as you can safely assume your users will all have access to it. Even when it's available, it may not be the user's choice. I, for one (and I believe a lot of users feel the same way) would prefer to use my web-based email account. If you can add that as a configuration option, that would be ideal. You could probably leverage modules such as Mail::Client::Yahoo and WWW::Hotmail to handle the nasty bits for you.

    A word spoken in Mind will reach its own level, in the objective world, by its own weight