You never call getready or sendmail. How do you think you kick off the mail sending?
In reply to Re^3: mail with users names by Corion in thread mail with users names by frank1