Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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

by CaMelRyder (Pilgrim)
on Apr 10, 2007 at 16:40 UTC ( #609201=note: print w/replies, xml ) Need Help??

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

I use Net::SMTP. The following block of code sends an email:
        $smtp = Net::SMTP->new($smtp_server_addr) or print $@;
        $smtp->datasend("To: God\n");
        $smtp->datasend("Subject: Thanks for perl\n");
        #@body is list of strings(lines of message)

¥peace from CaMelRyder¥
  • 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 blazar (Canon) on Apr 11, 2007 at 07:49 UTC
    $smtp->datasend("To: God\n"); $smtp->datasend("Subject: Thanks for perl\n");

    I would say "To: $Larry\n". But $Larry himself would probably agree with you. After all, thanks to interpolation, it can be both, and much more!

Re^2: How to send mail from Perl/Tk Program?
by mikasue (Friar) on Apr 18, 2007 at 12:26 UTC
    CaMelRyder, What if the outgoing server requires authentication? How do you authenticate with Net::SMTP? Thanks,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://609201]
Lady_Aleena clean up after dinner finally.
[Discipulus]: uch! so we are twice lucky to have MCE..;=)
[marioroy]: Working a midnight graveyard shift, on the way home ran out of gas. just 2 minutes later somebody stops with a small tank of gas. It's wierd. There's always someone nearby for some reason.
[Lady_Aleena]: I was the one who stop[ed in the middle of a cold night to pick up a small family walking to a gas station. I got a few gallons of free gas for the round trip, and the grandmother said she'd pray for me.
[marioroy]: Folks do not know it, but MCE was ridiculously difficult. At Niagra Falls, heard a voice on enabling Grace while in the mist boat. That 10x performance is possible.
[marioroy]: Lady_Aleena Angels on earth are real people. That's awesome.
[Lady_Aleena]: marioroy, what does MCE stand for in this instance? There are 3 pages of abbreviations to go through.
[Lady_Aleena]: ^ or Discipulus...
[marioroy]: Many-core Engine
[choroba]: MCE

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-05-29 08:26 GMT
Find Nodes?
    Voting Booth?