| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
I have the following script created to simply submit an email form from Flash to the script and send it to the designated email address which is set inside the Flash file - but I realize that it only works with UNIX, how do I get it to work correctly in a windows enviroment ?
#!/usr/bin/perl use CGI; $query = new CGI; for ($query->param) { $in{$_} = $query->param($_); } unless(open(MAIL,"|/usr/lib/sendmail -t")) { print "Content-type: text/html\n\n"; print "Unable to open sendmail binary."; exit; } print MAIL "To: $in{mail_to}\n"; print MAIL "Subject: $in{mail_subject}\n"; print MAIL "From: $in{mail_from}\n\n"; print MAIL $in{mail_message}; close(MAIL); print "Location: http://www.webryder.com\n\n"; Thanks for any advice - please feel free to contact me directly ! |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
That's a standard CGI script.. to get it working on Windows you will need to be running a local web server. Try PWS (by Microsoft) or Apache ( http://www.apache.org - my favourite ).
Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: May 2005
Posts: 1
|
Why not use PHP & just create a file called mailer.php
PHP Code:
![]() regards WC |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| launch windows explorer from flash projector | beamond | ActionScript 1.0 (and below) | 1 | 01-25-2005 10:24 PM |
| sessions = amfphp class = DOES NOT WORK IN WINDOWS IE | clem_c_rock | ActionScript 2.0 | 0 | 11-01-2004 04:10 PM |
| Swapdepth using txt files and dynamic content for game. | superbnerb | ActionScript 1.0 (and below) | 3 | 09-22-2004 08:27 PM |
| Question please help | jbking | ActionScript 1.0 (and below) | 3 | 04-05-2004 05:37 PM |
| communication server windows only ? | buggedcom | ActionScript 1.0 (and below) | 11 | 02-19-2003 02:07 AM |