Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-28-2001, 11:56 PM   #1
sryder
Registered User
 
Join Date: Jan 2001
Location: Halifax, Nova Scotia
Posts: 21
Send a message via ICQ to sryder
Default

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 !

sryder is offline   Reply With Quote
Old 03-01-2001, 11:55 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Old 05-09-2005, 02:59 PM   #3
sarijit
Registered User
 
Join Date: May 2005
Posts: 1
Lightbulb

Why not use PHP & just create a file called mailer.php

PHP Code:
<?php

mail
($to,$sub,$body,$additional_headers);

?>
You are done.

regards
WC
sarijit is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.