My code below worKs fine when i break it seperately to copy records and then send mail.
i need to have the send mail function run after the onedit copies the record. the