S
stuforman
I am attempting to send an email attachment out
Dim messageTo As String = "(e-mail address removed)"
Dim messageFrom As String = "(e-mail address removed)"
Dim msgSubject As String = "check confirm"
Dim msgBody As String = "please find the text attachment"
Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
Dim MailClient As New SmtpClient("###.#.#.##")
Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
Msg.Attachments.Add(attach1)
MailClient.UseDefaultCredentials = True
MailClient.Send(Msg)
Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu
Dim messageTo As String = "(e-mail address removed)"
Dim messageFrom As String = "(e-mail address removed)"
Dim msgSubject As String = "check confirm"
Dim msgBody As String = "please find the text attachment"
Dim Msg As New MailMessage(messageFrom, messageTo, msgSubject,
msgBody)
Dim MailClient As New SmtpClient("###.#.#.##")
Dim attach1 As New Attachment("c:\windows\temp\checkTest.txt")
Msg.Attachments.Add(attach1)
MailClient.UseDefaultCredentials = True
MailClient.Send(Msg)
Msg.Dispose()
I get an error "the operation has timed out"
Any ideas of what i'm doing wrong/missing?
thanks for any assistance,
Stu