Weird question -- please help

is there a reason a php mail form would work on one website and not on another? they are hosted in different places… would there be some difference in the servers? apache vs. windows? something like that which could cause it to not work?