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]
[Spenser]: So, nevermind about CPAN. I give up on the downgraded angle. I'm back to fighting to install DBD.
[shmem]: please open a SoPW. At what point is the perl-DBD-mysql installation failing?
[shmem]: do you have the mysqlclient libs on that device, for instance?
[shmem]: and btw, your original questian is an XY Problem classic ;-)
[Spenser]: yes, I have mysql client libs installed.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2018-03-17 12:50 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (224 votes). Check out past polls.