|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Email Issue due to Antivirus (posting again)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(***@xxx.com) Mail.To.Add("***@yyy.com") 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. Show quoteHide quote "Mike TI" <sunset***@hotmail.com> wrote in message news:e6KBID5XGHA.4432@TK2MSFTNGP04.phx.gbl... > 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(***@xxx.com) > > Mail.To.Add("***@yyy.com") > > 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() > > *********** > > > > 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. Show quoteHide quote "Mike TI" <sunset***@hotmail.com> wrote in message news:e6KBID5XGHA.4432@TK2MSFTNGP04.phx.gbl... > 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(***@xxx.com) > > Mail.To.Add("***@yyy.com") > > 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() > > *********** > > > >
How to release a free source code?
Dynamically open forms, reports or call functions .NET 1.1 app runs on .NET 2.0? Warning Text Files Access Database update problems. How to convert a regular VB app into a service to run on a Windows 2003 server? IO.File.AppendText error Crypto Question FileUpload to SQL Open Printers Folder |
|||||||||||||||||||||||