Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

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


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

Maybe you want to change how messages are sent?

You will still need a working SMTP server that is willing to accept your email - most likely your ISP provides one for you.


Comment on Re^3: How to send mail from Perl/Tk Program?
Re^4: How to send mail from Perl/Tk Program?
by mikasue (Friar) on Apr 10, 2007 at 13:19 UTC
    I thought about this Corion. But I want this to work on other users machines. I dont' want to hardcode my SMTP server in my program and then it doesn't work for another user.

    Any suggestions on making smtp universal to all my users?

      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.

        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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-08-22 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (146 votes), past polls