|
|
|
|
|
| | |
|
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
APSemail and ASPupload! |
From: |
ZAK |
Date: |
8/3/2000 12:41:40 PM |
IP: |
208.36.230.234 |
Hi,
I am using ASPemail with ASPUpload -- both working fine, except if I
try to email attachments.
On my next to last ASP page, I have a form that contains:
<form action="mail.asp" method="post">
<%
For i = 0 to arrFiles.Count - 1
Keys = arrFiles.Keys
Items = arrFiles.Items
Next
%>
<input type="Submit" value="Attach" name="Send">
</form>
The last page contains a couple of queries for filling in subject and
body and the email addresses.
The attachment part includes this code
Set arrFiles = Session("arrFiles")
If Request("SEND") <> "" Then
Items = arrFiles.Items
For i = 0 to arrFiles.Count - 1
Mail.AddAttachment Items(i)
Next
End If
The email will all work, if I do *not* name the send button
name="Send", but I get no attachments. If I name the button Send, then
the page cannot be displayed, but I get no explanation of the error.
Anybody know why this doesnt work?
|
|
|
|
|
|
|
|
|
|
|
|
|