You can use the same techniques in this tutorial:

http://labs.adobe.com/wiki/index.php/Flex_Framework:tutorials:flex2_and_
php

Instead of inserting the info into a database, you send a mail with
PHP's mail() function. something like this:

<HTML><BODY>
<?php
        $to = "[EMAIL PROTECTED]";
        $subject = stripslashes($_POST['subject']);
        $content = stripslashes($_POST['content']);
        $content = $content . stripslashes($_POST['footer']);
        $list = $_POST['bcc'];
        $headers .= "From: <[EMAIL PROTECTED]>\n";
        $headers .= "Reply-To: <[EMAIL PROTECTED]>\n";
        $headers .= "bcc: " . $list;

        @ $send = mail($to,$subject,$content,$headers);
        //returns bool
        if ($send) {
         echo "<h1><font color=\"#008000\">Email sent
successfully.</font></h1>";
        } else {
         echo "<h1><font color=\"#FF0000\">Email failed.</font></h1>";
        }
        echo 'Do it again.<FORM method="POST" action="mail.php"><input
type="submit" value="Go"></FORM>';
        echo '<HR>';
?>
</BODY></HTML>

hth,

matt horn
flex docs 

> -----Original Message-----
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of jf.saldanha
> Sent: Wednesday, June 28, 2006 11:38 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] send email with PHP
> 
> To me, in this days of Flex are important see a example of 
> Flex and PHP on send a Email dont see anything on the Web.
> 
> If someone have or see a example or a tutorial about that.
> 
> Thanks 
> 
> 
> 
>  
> 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to