User not local; please try a different path. The server response was: Sender address is not valid for your login. Check your email program settings.
Solution 1:
When your are receiving any email which is not containing your domain name then you should not use Credential in .Net / PHP.