Technically it is not legal. You need a license to import vitamins into the country. As long as they think it is a reasonable amount for your personal consumption it probably will not be a problem.
I do order vitamins from vitacost and iherb. However to avoid customs you have to keep the order small, less than a kilo I believe, and a value less than $1,500 baht.