the code attached to your post does not include the implode function.
send a copy of the page please and a copy of the webassist/email folder. Copy those to a zip archive and attach the zip file to your replay, with your files I will be able to tell you what needs to be changed