|
» W3Exchange http://www.w3exchange.com/index.html » ASP http://www.w3exchange.com/view_forum-id-29.html » File attachment with asp http://www.w3exchange.com/view_topic-id-41.html |
| mahesha - 2006-08-13 05:41:43 |
Hi all, Code::Dim obj
subject = Request.Form("subject")
body = Request.Form("body")
if subject <> "" then
str3=split(session("data"),",")
response.write(session("data"))
for i =0 to ubound(str3)
set obj = server.CreateObject("Cdonts.Newmail")
obj.To = str3(i)
obj.From ="mahesha@webcaresys.net"
obj.Subject = subject
obj.Body = body
'FreeTools = Request.Form("T2")
'obj.AttachFile(FreeTools)
obj.Send
Next
end if
//-----------------
this is the field to fasilitate the file attachment
//-----------------------
<td width="115" bgcolor="#fffdf0"><font class="smalltxt"> </font><font class="smalltxt">Attach File</font></td>
<td width="495" bgcolor="#fffdf0"> <input type="file" name="T2" size="23" class="design"></td>
//---------------------------------Need ur help |
» Print this topic |