Run app outside of Docker container

I am running app in Docker container and I would like to use sendmailwhich is installed outside of container on the same server.

Is it possible for that app in Docker container to use sendmail app which is outside of the container?
Could anybody recommend the best was to do that?