how can I use 2 public ip from deferent company on exchange server with one domain like when the first one stop the second one will work automatically ?
You need a Firewall device that can handle multiple IP addresses and do fail over. You also need to create multiple DNS records in public DNS like: