On Wed, 2002-04-17 at 12:41, Bill Lyles wrote: > I have a script that I'm trying to edit to use smtp because it only calls > for a mail program. > > this is the code > > if ($found) { > open (MAILME, "|$mailprog -t") or &dienice("Can't access $mailprog!\n"); > print MAILME "To: $email\n"; > print MAILME "From: $adminmail\n"; > print MAILME "Subject: Your username and password\n\n"; > print MAILME qq~ > Below are your username and password. > > Username: $user > Password: $pass > > Don't lose it next time :o) > > Best Regard > $adminname > ~; > close (MAILME); > print qq~ > $header > Your password and username have been sent to you. > $footer > ~; > > How can I change this to smtp? > > thanks
Take a look at Mail::Sendmail or Mail::Sender on CPAN (www.cpan.org). The author of Mail::Sender is on this list, so you may prefer to go that route. -- Today is Boomtime the 34th day of Discord in the YOLD 3168 Keep the Lasagna flying! Missile Address: 33:48:3.521N 84:23:34.786W -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]