User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: How do I send an email via mmf2? thanks!

  1. #11
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I send an email via mmf2? thanks!

    Sort of. First of all Flash won't let you 'open up a hidden browser'. You have to have the PHP script hosted on a capable server that runs PHP and hosts a crossdomain.xml file.

    Here is an example PHP script:
    Code:
    <?php
    $To = $_POST['to'];
    $From = $_POST['from'];
    $Subject = $_POST['subject'];
    $Message = $_POST['message'];
    
    if(mail($To, $Subject, $Message, 'From: ' . $From))
    {
    	exit('1');
    }
    else
    {
    	exit('0');
    }
    ?>
    All the variables for this script would need to be added via the add post variable in the get object before sending the request. If you want to test this in your browser you need to change all the $_POST to $_GET, then you can request it in the URL like this:
    http://www.example.com/path/Email.php?to=someone@example.com&from=somebody@exa mple.com&subject=Hello%20world&message=This%20is%2 0the%20message

    The script above gives a 1 for success and a 0 for failure.
    Working as fast as I can on Fusion 3

  2. #12
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I send an email via mmf2? thanks!

    Quote Originally Posted by LB
    Well, you'd have to use an object that is Vitalized... and sadly people seem to be giving up on Vitalize even though its so much better than flash.
    I agree that Vitalize is a lot better in terms of performance. The problem though is that most people on the internet wouldn't want to install a plug-in for a couple games. Maybe if you had a really big Vitalize arcade area they might (like the old V-cade). But even then I imagine a lot of people would just leave if they see they have to install a plug-in just to play. Especially when you could go to numerous other places and play a ton of Flash games.

    It's not a problem for our community, but that's completely different because we're Clickteam users. Not just some random person browsing the net.

  3. #13
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I send an email via mmf2? thanks!

    The whole point over Vitalize is that Clickteam can control what features it supports, rather then just being a tiny speck to Adobe.
    Working as fast as I can on Fusion 3

  4. #14
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I send an email via mmf2? thanks!

    Important note with the PHP script:

    Make sure it's secure. Otherwise you'll be sending prizes to lots of people!

    You'd do well to think of a way to store the information in an encrypted form so instead of:

    mail.php?to=admin@domain.com&subject=Bob+won+the+g ame

    You may end up with

    mail.php?return=6gaa7tuvkkut77i7gh

    Or some such thing.


  5. #15
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export Module
    xhedgehogx's Avatar
    Join Date
    Nov 2007
    Location
    NY, USA
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I send an email via mmf2? thanks!

    You can always have a link that says :

    mailto:youremail@domain.com

    You can use the Flash Player Object for it, works in Stand Alone EXEs but not the Flash runtime.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. email from the app?
    By payopepe in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 11th September 2012, 01:45 PM
  2. How to sent email.
    By Fanotherpg in forum iOS Export Module Version 2.0
    Replies: 12
    Last Post: 28th August 2012, 04:32 PM
  3. Send to Everyone
    By Blood_Wist in forum Lacewing
    Replies: 3
    Last Post: 11th March 2011, 05:19 PM
  4. Attaching a MMF2 file to an email?
    By Root in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 12th June 2009, 11:44 PM
  5. Email
    By izac in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th April 2008, 04:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •