formmail equivalent

This is a discussion on "formmail equivalent" within the Classic ASP section. This forum, and the thread "formmail equivalent are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Sep 19th, 2005, 15:03
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
formmail equivalent

Hi,

Does any body know a general script for mailing forms which I can use on a windows server. I need something like formmail.pl (which apparently doesn't run on a windows server). I need it to simply forward the contents of all form variables submitted to it without first specifying what form variables to look for.

I have experience with CDONTS and CDOSYS, but am not sure if it is possible to re-use the same script for different forms with different fields (as you can with formmail).

Is it possible to dynamically detect the names of form variables submitted to a page?

My server will run ASP or PHP

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 19th, 2005, 18:22
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
can u not just use the php mail() function?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 20th, 2005, 08:20
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Possibly...
I'm not up on php, I'm afraid I'm fairly rooted in asp.

But if the php mail() function will forward unspecified form variables, then I'll look into it.

Thanks for the heads up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 20th, 2005, 11:58
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.brainjar.com/asp/formmail/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 20th, 2005, 13:27
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Cheers for this smokie, I reckon I'm sorted.
I'm happy with the following code which lets me write a list of all present form variables, but the rest of the script looks worth implementing too.

Here's some useful script for anybody else who is looking to work with dynamic field names:

Code: Select all
FormFieldList = Split(request.form, "&")
For i=0 to UBound(FormFieldList) 
	response.write FormFieldList(i) & "
" 
Next
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 21st, 2005, 11:58
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
or you can do it like this:

Code: Select all
For Each i In Request.Form
  Response.Write i & ": " & Request.Form(i)
Next
8)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
formmail, equivalent

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ever get the developer's equivalent of writer's block? Donny Bahama PHP Forum 8 May 8th, 2007 12:24
Formmail.asp help MarkSensei Classic ASP 1 Jan 22nd, 2006 22:48
Need HELP - with formmail bplatosz Web Page Design 4 Nov 21st, 2005 19:01
Equivalent of Select Case in Php ? Andy K PHP Forum 1 Aug 19th, 2005 08:21


All times are GMT. The time now is 22:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42