Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by Bro. Doug (Monk)
on Apr 10, 2007 at 13:15 UTC ( #609131=note: print w/ replies, xml ) Need Help??


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

mikasue,

I often use MIME::Entity (I don't even have MIME::Lite installed). If you want to read up on MIME::Entity, you should start with MIME::Tools.

Along with MIME::Lite, you should be able to use this to send your email.

You may also investigate Mail::Box for more email related tools.

Peace monks,

Bro. Doug :wq


Comment on Re: How to send mail from Perl/Tk Program?
Replies are listed 'Best First'.
Re^2: How to send mail from Perl/Tk Program?
by mikasue (Friar) on Apr 10, 2007 at 13:24 UTC
    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!

      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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://609131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2015-08-02 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (7 votes), past polls