Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[F8] Emailing A JPG Through A Flash Form



I have created a page where people can go in and color the stones on the page. Its kinda like a coloring book. Now what I want to do is once they are done creating there image I want them to be able to email that image to someone else. I want to make like a contact form the only thing is that the image will be automatically be attached to the message. How can I achieve that using AS. I hope I was clear enough. Thanks



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-16-2007, 08:30 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Emailing A JPG Through A Flash Form
I have created a page where people can go in and color the stones on the page. Its kinda like a coloring book. Now what I want to do is once they are done creating there image I want them to be able to email that image to someone else. I want to make like a contact form the only thing is that the image will be automatically be attached to the message. How can I achieve that using AS. I hope I was clear enough. Thanks

Emailing A Flash Form W/ PHP
I have a flash form and a PHP sendmail script.  I used a script from a source that I thought was reputable, but it doesn't work.  It was strange in that it worked 'once' then nothing else.  Can anyone see anything that I might have done wrong in these scripts?

Any help is appreciated!

Jason Kofoed
jasonkofoed@sbcglobal.net

Flash Form: (send button script)
the text input fields var properties are named:
 'email', 'name' and 'message'

on (release) {
    data.email = email;
    data.name = name;
    data.message = message;
    data.loadVariables('sendmail.php', 'POST');
    _parent.status = 'sending now ...';
}


PHP: "sendmail.php"

<?php

// and import them into the script
$name = $_POST[name];
$email = $_POST[mail];
$message = $_POST[message];


// where to send it
// ***** fixed recipient ******
$recip = "jasonkofoed@sbcglobal.net";
//****  end fixed recipient *******

// build up message
// this code for any multiline text fields
$message = str_replace("
", "
", $message);

// info vars
$sender = $_SERVER[REMOTE_ADDR];
// you can rearrange this - just do not add or remove quotes
$mailbody = "Contact form sent by
Name: $name
Email: $email

message:
$message
-------
sender's ip: $sender";

// send it off

mail($recip, "contact form", $mailbody, "From: webserver@esolutionsonline.com");

// and tell visitor
print "&status=mail sent - we will be in touch with you shortly&";
?>

Emailing Flash Form Data Using ASP
Hi there,

I've had a read of a few tutorials to do with the emailing of form data using asp however as yet I've not managed to get anything working.

Can anyone recommend any good tutorials or offer any help.

Thanks,

Nick

Emailing Form Data From Flash 8
Hey all,

Who know how to email form data from a Flash page when clicking a "submit" button. Will also need to re-direct to another frame inside the .swf file once submit is pushed, like a "thanks for your submission" message.

Thanks a lot, Brian

Creating A Form In Flash 8 And Emailing The Results To A Set Address
Hi,

I am not quite sure how these things work....but I will tell you my problem anyway. I followed a tutorial on creating a form in Flash 8 but in the end they send the results to a dynamic text box but I need mine to send to an email address. How would I do that?

Cheers

Emailing A Form--please Help
I have set up 3 forms on my flash website which I would like emailed to me. One form was already set up when I purchased the template. The other 2 I created. I have read soooo many tutorials and nothing has worked. And none of the tutorials had script that looks like the one that is on the form that came with the template. Here is what is under the Actions for the form that came with the template. I've changed the email address to match my own, but it does not work.

rec="ice@template-help.com";
serv="php";

var fields_descriptions= Array ("",
Array("t1", "your_name", "Your Name:"),
Array("t2", "your_email", "Your Email:"),
Array("t3", "telephone", "Telephone:"),
Array("t4", "message", "Message:"),
Array("t5", "field_2", "E-mail:"),
Array("t6", "field_3", "Address:"),
Array("t7", "field_4", "fax:")
);



for (i=1; i<=fields_descriptions.length; i++) {
this["k"+i].text=fields_descriptions[i][2];
}




Please Help!!

THANKS!!!!!

Emailing A Form
ok, I've just created a form with Flash MX 2004, I have the variables named, but I don't know how to load the variables and then send the variables to my email so I can add the people to my site can anyone help me?

I'm not sure where this went. Please help.

Emailing A Form With Php
hello,
I am very new with php and having some problems running this email script. im creating a flash form which gets emailed. can anyone tell me, how can i send this email with all these fields. the action script code is below:


on (release)
{

import mx.controls.Alert;
myClickHandler = function (evt){
if (evt.detail == Alert.OK){

}
}
Alert.show("Thank you very much. Your message has been sent.", "Reservation Alert", Alert.OK);

if (pickDateText != undefined && pickTimeText != undefined && dropDateText != undefined && dropTimeText != undefined && vehicleTypeText != undefined && pickLocationText != undefined && dropLocationText != undefined) {

loadVariablesNum ("reservation.php", 0, "POST");


}
}

Here is the php script as well. I think, there is something wrong with the php script. Please check whats wrong.

<?

$to = email@address.com;
$msg = "Name: $_POST[pickDateText]

";
$msg .= "Pick Date: $_POST[pickDateText]

";
$msg .= "Pick Time: $_POST[pickTimeText]

";
$msg .= "Drop Date: $_POST[dropDateText]

";
$msg .= "Drop Time: $_POST[dropTimeText]

";
$msg .= "Vehicle Type: $_POST[vehicleTypeText]

";
$msg .= "Pick Up Location: $_POST[$pickLocationText]

";
$msg .= "Drop Location: $_POST[dropLocationText]

";

mail($to, $pickDateText,$pickTimeText,$dropDateText,$dropTim eText,$vehicleTypeText,$pickLocationText,$dropLoca tionText, "From: Titans Reservation
Reply-To: $email
");

?>


thanks

Help With Actionscript Emailing A Form
I have a simple flash form (where i am trying to gather users inputted data) with the below actionscript. I am trying to get the form to email the info in the fields to me. The form is posting to a php file which i will also show the code to below...If anyone can help me I'd greatly appreciate it.


ActionScript Code:stop();

function sendForm(){
var result_lv:LoadVars = new LoadVars();
my_lv = new LoadVars ();
my_lv.fullname = name_txt.text;
my_lv.email = email_txt.text;
my_lv.phone = phone_txt.text;
my_lv.comments = comments_txt.text;
my_lv.sendAndLoad("mailform.php", result_lv, "POST");
nextframe ();
}

send_btn.onRelease = function () {
if (name_txt.text == "" || email_txt.text == "" || phone_txt.text == "" || name_txt.text == "Your full name:" || email_txt.text == "Email address:" || phone_txt.text == "Phone number:") {
status_txt.text = "Please complete the entire form";
}
else {
status_txt = "";
sendForm ();
}
};
/*
reset_btn.onRelease = function () {
name_txt.text = "Your full name:";
email_txt.text = "E-mail address:";
phone_txt.text = "Phone number:";
comments_txt.text = "Your message:";
status_txt.text = "";
};*/

And here is the php code:

<?

ini_set("SMTP", "mail.firstnationalhomeloans.com");
ini_set("smtp_port", "25");
ini_set("sendmail_from", "travis@firstnationalhomeloans.com");

$headers = "From: Web Info <travis@firstnationalhomeloans.com>";
$to = "internetleads@firstnationalhomeloans.com, ying@firstnationalhomeloans.com";
$subject = "Info Request from CK web page";


$name = $_POST['fullname'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$comments = $_POST['comments'];


$message = "This person would like more info:
Full Name: $name
Email Address: $email
Phone: $phone
Comments: $comments
";

mail($to, $subject, $message, $headers);

echo "<html>
<head>
</head>
<script language="javascript">
window.close()
</script>
<body bgcolor="#FFCC33">
<h2><em><center>
Email sent!
</center>
</em></h2></body>
</html>
";

?>
Thanks again for any help or ideas as I am a newbie

Contact Form Emailing What Website It Was Sent From
Hi, new user, just getting into flash again.

I've created a contact form that we use on Ebay so customers can easily ask questions. It works great, sends all the info they fill out to a php processing page, and sends us the email. However, since we use it on ebay, and we use the same form on several listings at a time, we have no idea what auction they're asking about *oops*.

Is there a way for the form to pull the webpage URL of whatever Ebay page the form is on, and send it to us as well?

Thanks a million!

Emailing Form To Bounce Back To Swf(?)
I'm having some trouble getting a froms info to bounce back to the flash so that I can let the veiwer know that their info has been sent. --- I am sending the info to a php file--

I have this at the buttom of my code--
blah, blah, blah
formData.sendAndLoad("email_request.php", formData, "Post");

I have found some code that reads---
formData.sendAndLoad("email_request.php", retData, "Post");


retData.onLoad = function(success)
{
if(success)
{
if(retData.retVal == "okay")
{
gotoAndStop(18);
}
else
{
//Handle error
}
}
}
}

when i put this in and switch the "formData to "retData" it doesn't send at all.

In my php code I have---

<?
include 'init.php';


mail ("xxxxxxx@email.com", "All Type Accounting Contact Us Form",
"
The following is input from the request info page.
Please respond to $name at $email in 2-3 business days.


-----------------------------Basic Information----------------------


name: $name1
email: $email
phone: $phone
address: $address
description: $description
size1: $size1
price: $price

Please contact $name immediatly via phone.","$name
");

if(mail(success))
{
print &retVal = "okay";
}
else
{
print &retVal = "error";

}


?>

Any suggestions???

sorry such a long post.

thanks,

hutch

Emailing Out Of Flash
I know, I know... probably a real BASIC question.

Html has 'mailto:' for handling emails effortlessly.

Does flash have an equivelent method to handle emails ( oh please don't let it be that I have to create a form and get involved in server side scripts)?

Emailing In Flash
I am working on a quiz form in flash 5 for my website. There are 4 options, A, B, C, and D. I am trying to make the form send an email to me once they make there selection. Here is the code for sending me an email:

on (release) {
loadVariablesNum ("MailPHP.PHP", 1, "POST");
}

I have it send the selection letter to a PHP file that has this code:

<?
mail("My Email is here","Quiz Answer","$Letter");
?>

$Letter is the users selection.
For some reason, I never get an email with a quiz answer. Is there a better way of sending emails in flash?

Adam

Emailing Flash
Does anyone know how to effectively include flash files into emails?

Emailing Flash?
is there anyway to email the flash movie so when they open it up it plays the flash movie?

Emailing Through Flash MX
Hi,
Can any one tell me how do I make a text when clicked will open an email browser. I want the user to send an email to my address when they click a text or button.

Thanks,
Syed

Emailing With PHP In Flash
I need some help. I want to make create a system for flash, which will allow visitors to email me in PHP, so it doesn't open outlook express, I want it to send right from the .swf file. If anyone can make a tutorial for that, or give me a link to a tutorial like it, that'd be much appreciated.

BTW: my site is www.godlygamer.com

Emailing In Flash
Hey, I was wondering.....anyone out there know how to send email through Flash with PHP or plain Actionscript without Flash Remoting or XML (for PHP, that is)? I would just loveee to know how to do this but I can't seem to figure out how. I tried some tutorials but only one did'nt use remoting or XML...but that didn't quite work out.

Thanks,
Gerard

Emailing From A CD With Flash Using CF
Hi guys. This is fusionweb, an Argentinean in Montreal.
I'm developing an interactive cd for the service companies that repair the machines the company I work for develops (Commercial Dishwashers).
I'm using a script to detect if the user is online when clicking on "Contact Us". If they are online, the movie jumps to a frame where I have a form to complete and send as email.
I was using the same code I used before for a form in a site, with the difference that now the cfm file is on the server.
But for some reason it doesn't work. This is the code I'm using when releasing the "send" button:

on (release) {
loadVariablesNum("http://www.garrapinadas-del-rey.com/fla_email.cfm", 0, "POST");
gotoAndStop("sent");
}

I'm using the complete URL instead of the simple file.

Any idea?

Thanks a lot

Emailing From Flash 8
I have built a contact form for a site (my first proper flash site) and it wont work?! i built it according to a lot of looking through online tutorials. Im using input text boxes and labeling them using the var: property box like in the tutorials but when it come time to send i get an error report from my ISPs cgi script saying i havent defined the recipent - which i have done according to examples i have seen ie creating a input box labeling var: recipient and typing my email into the box

this is the AS i use (attached to submit button) to send:
on (release) {
getURL("

Emailing From Flash
I know I post for help alot on this project... But I have decided to un-giveup on it...

I am trying to have it send an email after a chat is finished using the blue button... to the right of the chat..

To use the program... it is full screen, use the little dot at the bottom of the screen, that will take you to screen 2, put in a name, then hit continue (or enter), in the next page is the chat script, it only responds to HI and Bye right now, then the blue button should send an email to my email, but its not sending... The FLA can be found at: http://cid-96130dac976eef2f.skydrive.live.com/self.aspx/Public/letters12.fla

This is using Flash MX by the way.. I am only hoping to send the chat script to the email in HTML format.

I will include the code to the PHP script (which as been tested and working using another flash program on my computer..)



Processor Page
<?php

$sendTo = "mikekovacic@gmail.com";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";

$headers .= "Reply-To: " . $_POST["email"] . "
";

$headers .= "Return-path: " . $_POST["email"];

$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);

?>

Emailing Thru Flash Player
Hi all,

Just working on a lil' app in Flash here. Currently I can email via the swf file if it's posted on a website. But what I would really want it to do is to have it send an email when you view the swf file locally on the computer, without having to use a web browser.

Is this possible? I've done it when it's on the website, it just doesn't seem to work when it's local :(
Really need help with this one.

The script I'm using is in PHP and sitting on the web server. The LoadVariables is pointing to this php file via http://www.blahblah.com/blah/blah.php (note. this isn't the exact URL, duh :P )

Thanks in advance.

WwW

VB Script For Emailing Through Flash
I have searched but i cant find it, i found out HOW to make flash email, but i cant find this file called "cdontsMail.asp"
it said it should have been attached or something, but it wasnt.

Emailing Flash Movie
could anyone help me:

i have built a newsletter in flash for a client. they want to send the newsletter out in an email. is there any way to send it so that it automatically opens up in an email (so they don't have to open up an attachment)? does this have to be published as a projector? i have no idea how to do this. if anyone could walk me through it, i would be truly thankful.

artunit

Emailing Variables From Flash?
if I have variables user-defined in flash (e.g. selected product item numbers and prices) and the user inputs their email address, can they click a button and have that info emailed to a pre-determined email address? If so, how do I set that up? Thanks

Emailing Forms From Flash
Is there a way possible when emailing forms from flash to not only email the data, but the actual form itself?

Emailing Derectly From Flash
how can i get this to email a spusific email adress i just need to know how to use form to mail scripts i think

sorry you have to copy and paste it in your browser slipgear.org/form.swf

thank you

Emailing Flash Or HTML
Can I build an email in flash or HTML - and send it out - having people be able to view it.

Simple put I want to make a dynamic email - with text and graphics -with links as well.

What do I do?

Thanks,
JT

[F5] Emailing Flash Animation
Hi, could someone advise me of how to email a flash animation?

Emailing Thru Flash - 'contact Us'
Hi all,
I'm not sure what the technical term for this is but I am editing a web site template for a business and in the 'contact us' it has a section for customers to fill out there details (name, email adrress and query) and hit 'send' and it should email to a specified email address.
As far as I can figure it currently does nothing. once the 'send' buttion is hit.
Can someone point me in the right direction or explain how to do this.
I have been searching the web but its a bit hard as I dont even know what to search for.

Cheers
303

Emailing From Flash Website
I want to know as to how someone can email me directly from my Flash site. For example I want to keep an email address,(someone@domain.com), and when the user clicks on the address, he is directed to his default emailing facility (Outlook Express), and from there he can write the email to me.
Thanx<

Saving A Flash File As A Jpg Or Gif And Then Emailing It
Hi,
I have created a drawing tool in flash (pretty much like etch-a-sketch).
I would like the users to draw in the flash file and then be able to save their drawing as a gif, jpg etc. Basically it would be a screenshot of the entire flash file.

So basically the question is:
Does anybody know if its possible to convert a swf to a gif or jpg?

Thanks for any help,

Lee

Emailing Flash .exe Movie As An Attachment
Hello everyone.

I've finished a Flash presentation for a client and would like to send it over via email as an .exe file, as he'll be forwarding the file to many recipients and a .swf may be too much for some to comprehend. However, most email programs and services do not allow attaching .exe files. I've tried zipping it into a .zip file, but that won't work either.

Any idea on how to send a .exe flash file via email?

Thanks!

zayd

Emailing Quiz Results In Flash
I'm doing a little side project for work called tech tips online. I show them some tutorials and I quiz them at the end. I used the flash template to create the quiz and it works great. Now I just want to email them to the store manager in the store. How do I do this.

I'm a novice action script user but a avid flash animator.

Emailing User Input - Flash 8
I'de be grateful to anyone who is able to offer Action script advice regarding how to capture and then email user input.
Cheers

Emailing List Signup Through Flash?
I have a text field and a button - has this been posted before?
All I am trying to do is figure out how to make the button send the info in the field to a certain email address.
also how is this done with multiple fields and a single button?
Josh

Emailing A Jpeg As An Attachment From A Button Within Flash
I want to have a button that when clicked opens up the users email program and attaches a jpeg to the email (i guess this will be hosted on my server)
and they can type in whatever email address of their friend/client at the top

I know this probably requires PHP script in there?

ANy ideas or help please

James

Emailing A Jpeg As An Attachment From A Button Within Flash
I want to have a button that when clicked opens up the users email program and attaches a jpeg to the email (i guess this will be hosted on my server)
and they can type in whatever email address of their friend/client at the top

I know this probably requires PHP script in there?

ANy ideas or help please

James

?Emailing A Jpeg As Attatchment In An Email From A Button Within Flash
Hi there

im working in Flash MX

What i want to do is:

I have a jpeg, i want to host this on my server then use some code on a button in flash that when you click it will link this jpeg into an email to somebody, and add a subject to the email saying something like 'check this out' with maybe if possible a bit of code on the jpeg image that when its clicked on links back to my website?

ANy ideas or help anyone i would be most greatful

I know how to do the 'mailto:' function to send someone an email from flash, its just adding the code to attatch this jpeg automatically into the email aswell

Cheers

Leo

Emailing Flash Forms To Different Email Addresses Based On Answers?
How do you make a flash form send the data in the fields to different emails based on users' answers? For example in my flash form, I have a check box and one says "male" the other "female". I want the answers from everyone who answers "female" to go to females@yahoo.com, the ones who answer "male" to go to "males@yahoo.com". ANyone know of a readily available solutions/scripts out there? BIg big thanks to anyone who can help!!

Emailing Help
Does anyone know how to send email from form fields in Flash? Without the use of asp, because I'm not set up for that here.

Thanks for the help

Emailing Using CGI
I have a flash page embedded in a web page which is an email form - using one of the tutorials given on this site I have tried it, but it comes up with an error message - "No referrer" - any ideas, as I am stuck?

Any ideas welcomed,
Cheers,
Sparky

Emailing Help
I'm trying to put an email page in my site and the script i have isn't working. What i want is for some one to open that page, write an email in the site, and send it from there. If possible I would like to make an auto response. Can anyone help?

Thanks

Emailing From An .exe
Hey there, I'm making a presentation for a client and there's a part for contact when they click on contact the computer should open the browser.
I know the code for this is

on release
email("mailto:whatever@whatever.com")

but it doesen't work when I run the excecutable, and I contacted some people but they don't seem to have the anwer they all say that the browser has to be open in order for it to work.

Is there another way I can do this to get it to work??

Thanks for any help you may provide on the subject.


furnart

Emailing With Asp
i'm using the code from the tutorial on emailing in flash, and have adapted it like so:

<%
Name = Request.form("Name")
Email = Request.form("Email")
Company = Request.form("Company")
Phone = Request.form("Phone")
Body = Request.form("Body")

strName = "Joe Media"
strEmail = "mcpeekj@hotmail.com"

strSubject = "JoeMedia Web Inquiry"
strBody = Comments & Company & Name

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = "mail.brinkster.com"
Mailer.FromName = Name
Mailer.FromAddress = Email
Mailer.AddRecipient strName, strEmail
Mailer.Subject = (strSubject)
Mailer.BodyText = strBody

if Mailer.SendMail then
Response.Write "_root.contactTransition.contactForm.EmailStatus=C omplete - Your mail has been sent"
else
Response.Write "_root.contactTransition.contactForm.EmailStatus=F ailure - Your mail was not sent - errors"
Response.Write Mailer.Response
end if
%>


and i have this code on my submit button:

on (release) {
if (!Name.length) {
nameStatus = "<-- Missing**";
} else if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "<-- Missing or invalid**";
} else if (!Body.length) {
bodyStatus = "<-- Missing**";
} else {
loadVariablesNum("ASPMail.asp", "0", "POST");
sendStatus = "Sending...";
}
}



predictably, this doesn't send anything. is the problem in my using hotmail and brinkster, or in the code somewhere?

Emailing
Ok i hope i make since of what i am going to ask
so here we go.

ok what i want to do is make a "swf" file with a question
in it and have 2 buttons (yes & no)but here is the tricky part
what i want to happen when someone clicks on one of the buttons
i want it to send me a e-mail without the user even having to
mess with any e-mail programs like "outlook express" ect...
so it makes it veary easy to use just a click of a button.
i dont even know if it is possible but i would like so expert
brains on it if you dont mind.

so please help
thx in advance
XxGraphxX

Emailing
Ok i hope i make since of what i am going to ask
so here we go.

ok what i want to do is make a "swf" file with a question
in it and have 2 buttons (yes & no)but here is the tricky part
what i want to happen when someone clicks on one of the buttons
i want it to send me a e-mail without the user even having to
mess with any e-mail programs like "outlook express" ect...
so it makes it veary easy to use just a click of a button.
i dont even know if it is possible but i would like so expert
brains on it if you dont mind.

so please help
thx in advance
XxGraphxX

Emailing
How could I include a link in my .swf file that when its clicked on, opens up the users email program and a new email with the address already in there?

Just like the Mailto function in html.

Thanks

Emailing
i was wondering if there was some way to email through flash, similar to the html command mailto:

if anyone can answer my questions or help me out that would be great

thanks, protios

Copyright © 2005-08 www.BigResource.com, All rights reserved