EOF close(SENDMAIL) or warn "sendmail didn't close nicely";