Where did the saying happy as a clam come from?

How did the saying “happpy as a clam” come about and what exactly does it mean?

Here is the opinion of one site

Wordorigins.org:

http://www.wordorigins.org/wordorh.htm

The Word Detective agrees with Markxxx

http://www.word-detective.com/072999.html#clam

I had always assumed it was because a clam looks like it’s smiling when it’s shell is closed.