http://qs321.pair.com?node_id=82780


in reply to SendMail won't send mail

You don't show the close(MAIL), but I'm guessing that you're not checking errors there. If your "$mailprog -t" returns an error, it'll show up on the close.