Email Issue due to Antivirus (posting again)

  • Thread starter Thread starter Mike TI
  • Start date Start date
M

Mike TI

April 14, 2006

Hi all

I had posted this msg earlier also.

If I send an email through my application (VB.NET 2005) it goes immediately.

However if I turn 'Internet Auto Protect' feature ON in Norton Antivirus,
the email goes only when I close the entire VB application.

I have tried to change the Smtp port 25 defined in the antivirus program but
no luck.

Any suggestions.

Mike TI

Source Code

**********
Dim Mail As New MailMessage()

Mail.From = New MailAddress([email protected])

Mail.To.Add("(e-mail address removed)")

Mail.Subject = "Subject Test Email"

Mail.Body = "This is the body of the test email"

Dim Smtp As New SmtpClient("000.000.000.000")

Smtp.Send(Mail)
Mail.Dispose()

***********
 
As advised in response to your earlier post, turn the 'Internet Auto
Protect' off.
 
Perhaps you're missing a line when posting but have you tried disposing the
SMTP as well? On a second thought, since the email fires after the
application shuts down, if that doesn't work for you then try invoking the
email in a separate thread then closing that thread.
 
Back
Top