Sending email and inserting category in other