website mail form user not local

I have a web form and I use this code

Private Sub SendMail(ByVal [From] As String, ByVal [To] As String, ByVal Subject As String, ByVal Body As String, ByVal MailServer As String, Optional ByVal IsBodyHtml As Boolean = True, _

Optional ByVal MailPort As Integer = 25, _

Optional ByVal Attachments() As String = Nothing, Optional _

ByVal AuthUsername As String = Nothing, Optional ByVal _

AuthPassword As String = Nothing)

Dim MailClient As [url removed, login to view] = New [url removed, login to view](MailServer, MailPort)

Dim MailMessage = New [url removed, login to view]([From], [To], Subject, Body)

[url removed, login to view] = IsBodyHtml

If (AuthUsername IsNot Nothing) AndAlso (AuthPassword _

IsNot Nothing) Then

[url removed, login to view] = New _

[url removed, login to view](AuthUsername, AuthPassword)

End If

If (Attachments IsNot Nothing) Then

For Each FileName In Attachments

[url removed, login to view]( _

New [url removed, login to view](FileName))


End If

[url removed, login to view](MailMessage)

End Sub

and it comes up with this error

User not local; please try a different path. The server response was: This mail server requires authentication before sending mail from a locally hosted domain. Please reconfigure your mail client to authenticate before sending mail.

I need someone to fix this now and cheap!

Taidot: verkkosivujen suunnittelu

Näytä lisää: web design attachments, true design web, have someone design a website for cheap, fix your website now, design website cheap, Mailserver, mail client, cheap design website, form net form, mail send client, fix system path, sendmail subject, domain mail, response code error, send mail form, response form, local domain, web mail client net, web client mail, net mail client, web mail client, boolean error fix, send attachment web form, php form mail multiple user, mail server design

Tietoa työnantajasta:
( 5 arvostelua ) manchester, United Kingdom

Projektin tunnus: #4248260