Rexolio
Technical User
- Aug 29, 2001
- 230
Boy, I just can't get a break on this particular subject!! First there was the stupid quotation mark issue. But now I've gotten 2 different users emailing me about an error message they've gotten. Doesn't seem to happen all the time:
error '80070020'
The process cannot access the file because it is being used by another
process.
/members/sendemail.asp, line 167
Both error messages received were the same, with the exception of the line number, which was 164 on the other. Here is the code I'm using. I've indicate lines 167 and 164. It appears that it may be talking about the myMail function, but I'm not sure. Any boyd with suggestions on this, how to fix it or perhaps make it better is greatly appreciated:
<%
SQL="SELECT * FROM tblMembers WHERE Status = 'Subscribe' ORDER BY Name"
set Listings=Conn.execute(SQL)
do while not Listings.eof
Dim myMail
Set myMail = Server.CreateObject("CDONTS.NewMail"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
if Listings("Email"
<> " " then
strEmail = Listings("Email"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
strName = Listings("Name"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
if strGreet = "None" then
myMail.Send strSndEmail, strEmail, strSubj, strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
end if
if strGreet = "Congratulations" then
myMail.Send strSndEmail, strEmail, strSubj, strGreet & " " & strName & "!" & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
^ LINE 164 ABOVE ^
end if
if strGreet = "Dear" then
myMail.Send strSndEmail, strEmail, strSubj, strGreet & " " & strName & "," & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
^ LINE 167 ABOVE ^
end if
if strGreet = "NameOnly" then
myMail.Send strSndEmail, strEmail, strSubj, strName & "," & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
end if
end if
Set myMail = Nothing
Listings.movenext
loop
Listings.close
%>
Thanks in advance!
error '80070020'
The process cannot access the file because it is being used by another
process.
/members/sendemail.asp, line 167
Both error messages received were the same, with the exception of the line number, which was 164 on the other. Here is the code I'm using. I've indicate lines 167 and 164. It appears that it may be talking about the myMail function, but I'm not sure. Any boyd with suggestions on this, how to fix it or perhaps make it better is greatly appreciated:
<%
SQL="SELECT * FROM tblMembers WHERE Status = 'Subscribe' ORDER BY Name"
set Listings=Conn.execute(SQL)
do while not Listings.eof
Dim myMail
Set myMail = Server.CreateObject("CDONTS.NewMail"
if Listings("Email"
strEmail = Listings("Email"
strName = Listings("Name"
if strGreet = "None" then
myMail.Send strSndEmail, strEmail, strSubj, strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"
end if
if strGreet = "Congratulations" then
myMail.Send strSndEmail, strEmail, strSubj, strGreet & " " & strName & "!" & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"
^ LINE 164 ABOVE ^
end if
if strGreet = "Dear" then
myMail.Send strSndEmail, strEmail, strSubj, strGreet & " " & strName & "," & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"
^ LINE 167 ABOVE ^
end if
if strGreet = "NameOnly" then
myMail.Send strSndEmail, strEmail, strSubj, strName & "," & vbcrlf & vbcrlf & strMsg & vbcrlf & vbcrlf & "TO UNSUBSCRIBE: " & vbcrlf & " & Listings("NameID"
end if
end if
Set myMail = Nothing
Listings.movenext
loop
Listings.close
%>
Thanks in advance!