"Please tell Edwin to contact me as soon as possible".
This is called an 'imperative' clause. With imperatives, the subject is usually omitted, but understood as "you".
You are correct that "Edwin" is object and that "to contact" is an infinitive, but "me" not the subject, it is object of the transitive verb "contact".