SMTPMail.Send Issue with Attachments

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?ZGlub28=?=

    SMTPMail.Send Issue with Attachments

    I am using .Net framework 1.1

    I am trying to send the attachment with the mail, but if the mail server is
    down then the exception is raised in SmtpMail.Send method. And the files are
    attached to this file are locked. I run into "Process can not access....."
    error if I try to update these log files.

    Looks like .Net Framework 2.0 and later has fixed this using a dispose
    method for MailMessage.
    How can I take care of this in .Net 1.1?

    Thanks,
    Dinesh
Working...