If you are a UK resident the wedding will be recognised in the country it takes place in and then legally recognised in the UK. If you are not a UK resident you will need to check with your local authorities.