I thought 1.5.2 had the smtp package. If not, how about just using popen to send the mail through /bin/mail.