Church weddings usually expect suit and tie for men, dressy for women (but not white unless you are the bride). Beach weddings or outdoors could be very informal. If the invitation didn't say, you can ask.