This code was working well on my dedicated server but know I am working on VPS.
My server provided said the previously it was open smtp but now there is username and password for smtp server.
How can I set username/password that I have in the above mentioned code?