G
Guest
When I send an email (basically a sms to a phone) from ms outlook it works
fine. When I try to send it pragmatically I get an error stating that it
can’t relay for <the email address>
Try
If Not strMailSv = "" Then
If Not msgTo = "" Then
Dim message As New MailMessage(sMailFrom, _
msgTo, _
sMailSubject, _
sTextBody)
Dim emailClient As New SmtpClient(strMailSv)
emailClient.Send(message)
'MsgBox("Message Sent")
Else
MsgBox("No recepiant specified",
MsgBoxStyle.Critical, "Mail")
End If
Else
MsgBox("No mail server specified", MsgBoxStyle.Critical,
"Mail")
End If
Catch ex As Exception
MsgBox(ex.ToString())
End Try
I have tried "emailClient.UseDefaultCredentials = True" and all I get is a
time out.
Is there a way to send it and authenticate with the server using a password
and user name I specify, to send it?
fine. When I try to send it pragmatically I get an error stating that it
can’t relay for <the email address>
Try
If Not strMailSv = "" Then
If Not msgTo = "" Then
Dim message As New MailMessage(sMailFrom, _
msgTo, _
sMailSubject, _
sTextBody)
Dim emailClient As New SmtpClient(strMailSv)
emailClient.Send(message)
'MsgBox("Message Sent")
Else
MsgBox("No recepiant specified",
MsgBoxStyle.Critical, "Mail")
End If
Else
MsgBox("No mail server specified", MsgBoxStyle.Critical,
"Mail")
End If
Catch ex As Exception
MsgBox(ex.ToString())
End Try
I have tried "emailClient.UseDefaultCredentials = True" and all I get is a
time out.
Is there a way to send it and authenticate with the server using a password
and user name I specify, to send it?