HighDots Forums  

Re: what's wrong with this form mail script?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: what's wrong with this form mail script? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hieu
 
Posts: n/a

Default Re: what's wrong with this form mail script? - 07-23-2003 , 12:13 PM






Hi James,

WA Universal Email is a commercially available Dreamweaver extension that is
fully-loaded with premium features. The extension supports CDONTS, CDOSYS as
well as many other ASP email objects. It will build all the server code
necessary for you to create and send emails so you don't have to write a
single line of code.

For more info, check out
http://www.webassist.com/Products/Pr...ils.asp?PID=13

You can also watch free movies to learn more about the extension at this
URL:
http://www.webassist.com/Products/Pr...als.asp?PID=13

Hope this helps,

--Hieu

"Jamesy" <NOSPAM (AT) patchworkmedia (DOT) co.uk> wrote

Quote:
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"))
%







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.