@Shona *********
it's the air carrier that is gonna have a problem more than the thai immigration staff once you get here.
IF your air carrier will let you check in without a visa to thailand in your passport AND with proof of onward travel later than 30 days you're good to go.
Contact the carrier BEFORE you go to check in and see if you're gonna have a problem or not.