How to add the post ID (or any other post data) to a Contact Form 7 mail?

This is pretty easy out of the box:

Just use the [_url] special mail tag.

As long as you are on a post or page you can even add some more things like the title with [_post_title].

Just have a look at the documentation for more options.