Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-31-2005, 03:15 PM   #1
fjellaksel
Registered User
 
Join Date: Oct 2003
Posts: 44
Default sending mail from flash 8 via php script

Hi guys !

This scenario is a bit strange.
When sending an e-mail from flash 7 via php, everything works great.
But when published with player 8, the e-mail is sent with html code for the font properties.

Just wondering how I can just send a plain simple e-mail without all the embedded html font information from flash player 8?

----------------------------------------------------------
E-mail with flash 7 looks like this:
Name: inputed text

E-mail with flash 8 looks like this:
Name: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica Condensed\" SIZE=\"12\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">inputed text</FONT></P></TEXTFORMAT>

----------------------------------------------------------------
Anyone know how not to send html in the mail?
fjellaksel is offline   Reply With Quote
Old 12-09-2005, 11:54 PM   #2
damooch
Registered User
 
Join Date: Dec 2005
Location: Miami
Posts: 1
Default

I noticed the same problem in Flash 8 - has anyone come up with a solution yet??
damooch is offline   Reply With Quote
Old 12-10-2005, 12:47 AM   #3
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

PHP Code:
foreach($POST as $key => $value) {
  
$key strip_tags($value);

or something like that should work.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 03-16-2006, 05:57 PM   #4
rommel
Registered User
 
Join Date: May 2005
Location: Transilvania
Posts: 79
Send a message via Yahoo to rommel
Default

Quote:
Originally Posted by fjellaksel
Hi guys !

This scenario is a bit strange.
When sending an e-mail from flash 7 via php, everything works great.
But when published with player 8, the e-mail is sent with html code for the font properties.

Just wondering how I can just send a plain simple e-mail without all the embedded html font information from flash player 8?

----------------------------------------------------------
E-mail with flash 7 looks like this:
Name: inputed text

E-mail with flash 8 looks like this:
Name: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica Condensed\" SIZE=\"12\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">inputed text</FONT></P></TEXTFORMAT>

----------------------------------------------------------------
Anyone know how not to send html in the mail?


dude could you show me how to send e-mail with flash(doesn't matter if it's flash 7)
I am trying to do this for over a month now with no succes.
please help me.
rommel is offline   Reply With Quote
Old 04-12-2006, 08:41 PM   #5
passions pyre
Registered User
 
Join Date: Oct 2005
Posts: 9
Default Other Way

Hey all, following Flash Gordon, you can also do a simpler method.
On receiving the variables from Flash, i.e.:

Code:
$name = $_POST['name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$comment = $_POST['comment'];
Add strip_tags($_POST['variable']); around each, so that the final code looks like this:

Code:
$name = strip_tags($_POST['name']);
$phone = strip_tags($_POST['phone']);
$email = strip_tags($_POST['email']);
$comment = strip_tags($_POST['comment']);
Cheers!
passions pyre is offline   Reply With Quote
Old 04-24-2006, 04:54 PM   #6
bauhous
Registered User
 
Join Date: Apr 2006
Posts: 4
Default the real reason

I don´t know if you have solved this yet, but I'll try to help anyway.

I had the exact same thing happen to me about 2 months ago. It took some digging, but I finally found the real reason it was happening and it has nothing to do with the php script.

Just check your input text fields in Flash and disable the "render text as html" button. Also select "Use device fonts". That's it!

Cheers,

bauhous is offline   Reply With Quote
Old 05-21-2006, 01:19 PM   #7
oleschmitt
Registered User
 
Join Date: May 2006
Posts: 1
Default

hey, this strip stuff really works!!!! That's what I was looking for. Thank you very much!!

PS.: I just needed to replace all "\n" and "\r" by "<br>" in order to have line feeds...
oleschmitt is offline   Reply With Quote
Old 05-21-2006, 04:20 PM   #8
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

I posted an answer in that some where.

I striped the line breaks in Flash and feed it to PHP as an "Joined array" (e.g. "foo.::.bar.::" split(".::.")) . Then explode() the string in PHP and join it with <br>

Cheers.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 09-21-2006, 01:21 AM   #9
flykix
Registered User
 
Join Date: Sep 2006
Posts: 5
Default Spam Bots???

Hey guys this sounds great but is this secure enough to prevent spambots from email header injections??? If there is a way that you can have a flash/php emailer that can get rid of spambots to prevent email header injections that would be so cool....
flykix is offline   Reply With Quote
Old 09-21-2006, 04:57 AM   #10
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

that needs to happen server side. I post a link to a really neat article about that somewhere in these forums.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon 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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:48 PM.

///
Follow actionscriptorg on Twitter

 


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