![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi, I've got a really simple form mail script here, that , if there is asession in existance. then it attaches a file from the server with the mail... the page submits and it goes to the redirect, but no mail arrives. I think it might be something to do with the way I've written the loop through the form items as it's my first time doing it... any ideas? James % Set objCDO = Server.CreateObject("CDONTS.NewMail") objCDO.From = Request.Form("emailaddress") objCDO.Subject = Request.Form("_subject") objCDO.To = Request.Form("_recipients") mailbody="" Dim f For Each f In Request.Form mailbody=mailbody & f & " = " & (f) & "<br>" Next If Session("fn") <> "" then fn = Session("fn") objCDO.AttachFile Server.MapPath("emailattachments/" & fn),fn end if objCDO.Send Set objCDO = Nothing Response.Redirect (Request.Form("_redirect")) % |
![]() |
| Thread Tools | |
| Display Modes | |
| |