Groups | Blog | Home
all groups > macromedia flash flashcom > august 2005 >

macromedia flash flashcom : Send email from Flashcom. Possible?


AlienCoder
8/11/2005 11:05:23 AM
I'm writing some application, where i need to send a confirmation email, when
all the users have submitted some form or after some time.
So i thougth, that the best solution was to send an email from the server side
application, or to execute some script (PHP), that sends it.
Is it posssible? I've found nocthing.

Have anybody seen something like that?

Thanks, ac
Eweb7
8/15/2005 8:58:23 AM
AlienCoder
8/22/2005 11:20:07 AM
Hi, thanks for your help.

But sending email from the client swf, is not what i want.

I want that the !server-side! application runs in a background (will not be
destroyed by garbage collector) and after certain event (time, all users have
filled the form, etc) sends emails though PHP script or smth, it's not
important.

Is it possible that the server-side application will not be destroyed at all?

Greets, Alien
ottocid
8/26/2005 12:32:54 PM
into the flashdb there is a simple example to use amfphp to log-in using the
server side code

whith that sample you can understand hos SSAS interacts with a remoting php
gateway.

interacting with a remote gateway you can do all ther server stuff you want
(email ftp db etc. etc.).

but it seems that you want some FREE full working code to do this, RIGHT?


AlienCoder
8/29/2005 12:06:04 PM
Hi, thaks a lot! It was very helpful!

The problem is, that i need something like setInterval() function on the
server side. But tha SS application will be disposed by garbage collector
aftrer 20 minutes, if there are no client applications.

If i want to send an email after 3 days i need to check every let's say 10
minutes if it's time to do it. So i think i need some process (i thought tha
probably SS application can that) that runs in background.

It's like chronJob under Linux.
I can write a process under Widows that do the same but it's relativly long
way.

is there any way to do that only with the Flashcom? I mean do some operation
after some time. Is it possible to make SS application to run resident as a
resident program?

I think i make separate topic.

Thanks, alien
Coolfront
9/1/2005 6:35:08 PM
Why are you asking a stream / communication server to do the work of an
application server and Db? Far better to ammend the methodology slightly and
exploit the the Flash Remoting functionality better.
Instead of keeping what I assume is a whole load of data just sitting in your
FCS app for what could be and infinite time scale tying up resources why not
let the garbage collector do it's thing.

At trigger points either event or chronology driven, use remoting to conect to
your application server and run an update to your Db or if it's fresh data
obviously run an insert. Remoting has a data resolver component that means
you'd only be sending updated data. You can then let your application server
fire off your emails however you want, either on chron job type set up or via
triggers from your FCS. If you've a load of audio or video stored, then again
I'd imagine it best to file these away into you streams directory and write
their filename and address back to your application server. They can easily
enough be brought back into your FCS application with a simple lookup to your
Db on application start.

Obviously you may want to disregard everything I've said because I'm a
relative newby to all this, still using documentation to look up the API!!... Ha

Chipped in my ten cents worth incase your in a can't see the wood for the
tree's senario.

Ciao, Justin
AddThis Social Bookmark Button