G
Guest
Hi,
I have created a windows application to send the emails. Following is the
code I am using.
Dim errMsg As String
Dim ToAddress As String
Dim FromAddress As String
Try
ToAddress = "(e-mail address removed)"
FromAddress = "(e-mail address removed)"
Dim mm As New MailMessage(FromAddress, ToAddress)
mm.Subject = "Test"
mm.Body = "Test Email"
mm.IsBodyHtml = False
Dim smtp As New SmtpClient
smtp.Send(mm)
Catch ex As Exception
errMsg = ex.InnerException.Message
End Try
In the app.config I specified
<system.net>
<mailSettings>
<smtp>
<network host ="myexchangeserveripaddress" />
</smtp>
</mailSettings>
</system.net>
I am running this code on windows vista. I am not sure if that is the issue.
If so how could I resolve that?
Thanks,
I have created a windows application to send the emails. Following is the
code I am using.
Dim errMsg As String
Dim ToAddress As String
Dim FromAddress As String
Try
ToAddress = "(e-mail address removed)"
FromAddress = "(e-mail address removed)"
Dim mm As New MailMessage(FromAddress, ToAddress)
mm.Subject = "Test"
mm.Body = "Test Email"
mm.IsBodyHtml = False
Dim smtp As New SmtpClient
smtp.Send(mm)
Catch ex As Exception
errMsg = ex.InnerException.Message
End Try
In the app.config I specified
<system.net>
<mailSettings>
<smtp>
<network host ="myexchangeserveripaddress" />
</smtp>
</mailSettings>
</system.net>
I am running this code on windows vista. I am not sure if that is the issue.
If so how could I resolve that?
Thanks,