I am attempting to send an email attachment out
Dim messageTo As String = "name@something .com"
Dim messageFrom As String = "name@something .com"
Dim msgSubject As String = "check confirm"
Dim msgBody As String = "please find the text attachment"
Dim Msg As New MailMessage(mes sageFrom, messageTo, msgSubject,
msgBody)
Dim MailClient As New SmtpClient("### .#.#.##")
Dim attach1 As New Attachment("c:\ windows\temp\ch eckTest.txt")
Msg.Attachments .Add(attach1)
MailClient.UseD efaultCredentia ls = 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 = "name@something .com"
Dim messageFrom As String = "name@something .com"
Dim msgSubject As String = "check confirm"
Dim msgBody As String = "please find the text attachment"
Dim Msg As New MailMessage(mes sageFrom, messageTo, msgSubject,
msgBody)
Dim MailClient As New SmtpClient("### .#.#.##")
Dim attach1 As New Attachment("c:\ windows\temp\ch eckTest.txt")
Msg.Attachments .Add(attach1)
MailClient.UseD efaultCredentia ls = 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
Comment