I am using PHPMailer with SMTP to send email. First I just test it from my localhost and it\'s successfully sent email.
But when I upload the same code to my service it
That link to the troubleshooting guide is there for a reason - if you follow it it will tell you exactly what is wrong: GoDaddy blocks outbound SMTP, so you have to use their mail servers. There are many duplicates of this question, so search before you post.
Some servers have certain functions disable that a user cannot enable them selves. Check with your hosting provider to see if they have the mail() function enabled.
In this case smtp mail function perfectly working in localhost but not in server.. soo you change the server setting