Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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

by Corion (Pope)
on Apr 10, 2007 at 13:21 UTC ( #609137=note: print w/replies, xml ) Need Help??

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

If you don't want to hardcode it, make it configurable for your users. You can also look up the MX record of the domain of the intended recipient and deliver the mail there. But delivering mail is a harder problem than you might think, because of Greylisting and firewalls and other stuff. So I think it's best to leave that up to the user.

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

Replies are listed 'Best First'.
Re^6: How to send mail from Perl/Tk Program?
by MaxKlokan (Monk) on Apr 11, 2007 at 09:36 UTC
    Perhaps you could set the default value of your configurable option to the MX record of the sender address. That should work fine in many cases, I guess.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://609137]
[stevieb]: heh, yeah, sorry. This is integration testing for certain. In fact, it's even Continuous Integration ;)
[stevieb]: Obviously, Travis CI just won't cut it for these distributions...
[stevieb]: I went on my merry way writing a cross-platform, network-aware system that works across Perlbrew and Berrybrew systems and runs unit tests for Perl dists on all installed versions, with the ability to manage *brew commands themselves
[stevieb]: That worked out exceptionally well, as when I started that project, I hadn't delved into hardware development yet.
[stevieb]: found a issue in MetaCPAN::Client though today for my revdep tests. At least I think it's an issue

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2017-06-25 23:32 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (572 votes). Check out past polls.