smtp.send从客户端计算机发送电子邮件失败

时间:2011-05-13 02:50:39

标签: vb.net

        Mail.From = New Net.Mail.MailAddress(test@gmail.com)
        Mail.To.Add("exc@gmail.com")

        Mail.Subject = "Test"
        Mail.Body = "Test"
        Try
            Dim mySmtp As New Net.Mail.SmtpClient("server")
            mySmtp.Send(Mail)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try

1 个答案:

答案 0 :(得分:1)

尝试禁用反病毒,因为它们可以阻止SMTP通话。