Now if you strip away all the formating and stuff, you get this:
make sure to change YOURDOMAIN and try it out. Not sure if it will work or not.
I don’t know about you but I wracked my brain, searched the web, contacted support and finally came up with the answer by happenstance. I was trying to figure out how to modify the code so that any of my clients could access their email from my website and thought that I had to come up with a way to automatically change the “YOURDOMAIN.COM” in the above code to match the clients domain. Took me 2 days to figure out that all that I needed to do was to change “YOURDOMAIN.COM” to dreamhost.com. So this is what I changed it to:
Worked like a charm! Verified it with support that it was ok, it was. Hope this helps anyone else that might be running into this problem.