Great I have sorted all that out, the issue was with the actual email accounts I didn't end up having to alter the code. Thanks for your help there.
There is one more thing I would like to help me with, the search box does not function at all, is there any way you could assist in helping me to find out why?
It has never worked as far as I know,
Many thanks in advance if you can help.