Hello, i can solve it, will try 2 different aproaches:
1- try to fix your original sourcode so not many changes are required or
2- upload a php mail class and replace the sourcode you are using so far.
PS: Your sourcode is a framework? (joomla, wordpress or similar?
Please let me know if interested, thanks!