I had long heard the idea that Joseph Smith got his ideas about the Celestial Kingdom and differing degrees from Swedenborg, but had never gotten around to looking at the actual writings of Swedenborg to compare for myself their similarities.
In case anyone does not know, by Joseph Smith's own statements, he was familiar with Swedenborg. Said Smith to Edward Hunter, "Emanuel Swedenborg had a view of the world to come, but for daily food he perished".
Anyway, I found an online copy of Swedenborg's book "Heaven and Its Wonders and Hell" (http://swedenborg.newearth.org/hh/hh00toc.html ). Using the table of contents you will be able to quickly identify the relevant chapters. You'll also be able to read about "the veil", "spirit prison", and "celestial marriage". Swedenborg's complexity of language is a little difficult to get through, but anyone who has been a Mormon will be able to see the "Mormon doctrines" shine through.
Of course, Joseph changed a few things, perhaps with the help of Sidney Rigdon, but the basic doctrines are there.