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




Simple Email Function Question?



So I created this simple function

Code:
function emailTo(address):Void {
var address:String;
getURL("mailto:"+address);
}
Now I know this works

Code:
mail_btn.onRelease = function () {
this.address = "test@domain.com";
emailTo(this.address);
}
But I want it to be in this format

Code:
mail_btn2.onRelease = emailTo("test@domain.com");
But now it opens up my email program as soon as I test the flash file, so not on click

Any ideas??



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 07-20-2006, 07:54 AM


View Complete Forum Thread with Replies

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

Email... Should Be Simple
I'm trying an email link with the simple "mailto:etc.com" in the getURL action and it does not bring up an email client when the button it is attached to is within a movie. Any idea why? Thanks.

Simple Email AS
Hi,

I have a bit of code and I want to be able to have it so when I click a button it loads an email address. Here is the code:


Code:
> yes please, but you may need to change server address, as im not sure
> if at the moment thw address is linked to our easyspace package -
> please check
For some reason this is not working, does anyone know why?

Thanks!

Email/mailto Function.
how do i get a button to perform the mailto function so it opens up a blank email addressed to my desired email address?

Help With Email Function On VBulletin
hi i am not sure if this is the place to ask
i have a vBulletin forum on my site and my server don't have the option needed to send from the forum emails (activation email for example) but i realy need this function to send news and some other things maybe someone knows a way to get the emails working anyway?

my site is : http://dimiboy.dkmhosting.com (its on hebrew)

Very Simple - Email Thing
PLEASE PLEASE, this is so easy (but i forgot how to do it)

Have you ever noticed in HTML , how 1 link can make your current mail program popup with this code to the link:
mailto:blablabla@blabla.com


now i have this symbol in flash 5 , and i want to assign the same kind of thing to it.
So that whenever i click on it, the standard mail prog. pops up.
How can i do this ?

thank you all in advance !!!

Simple Email Link
I'm just trying to open up a default email link. I'm using the html mailto: bit of markup, but I'm opening a browser window as well. Anyone know an easy way to just to open up the email interface?

Simple Email Problem
You know how you link up an email address in HTML, meaning "mailto:myEmail@myAddress.com"? How can you do that in Flash? I just want to simply have a button that when pressed, brings up the default email client.

Simple Email Submit
I'm tryin to put together a simple mailing list, but for some reason
all my searches end in tutes on feedback forms. All i'm lookin for is a way to allow people to join a mailing list, by submitting their emails into an input field with a submit button. Can anyone help, please .

Simple Email Button
Hi

I was going to include a full email page on my website but after looking into it, it looks as tho i have to use asp or html along with flash to get it working.

Is this true or can i just create a simple email form entirely in flash?

Alternatively, i might just put a email button on that will take the user to their browsers email page. Does anyone know what code i need on the email button so that it will do this?

Thanx

Simple Email Input PHP
Hi guys,

http://www.hardcoreismorethanmusic.com

I am working on this site presently - you will notice on the main section of the site there is a email inputter - built in flash, i have designed it using php - it doesn't work?? I have attached the fla - but i am on a mac so some of you may not be able to help - if anyone has a small fla which might help me do this i'd really appreciate anything!!!

Cheers:confused:

Simple Email Doing My Head In
Heyas people,

Got me a problem with this stupid email form. I am using AS to validate peoples usernames and email addresses, if the name is too short, or the email address does not contain the '@' or '.' symbol, they receive an error message in my 'output' box (thought about using a similar thing for the message body but decided that was being a little extreme).

Anywho, it works, but not as we know it scotty (english comedy, sorry). It doesn't seem to understand when the fields have been entered correctly and I cannot understand why. I've been reading through my AS and cannont explain it. If one of you AS genius could take a look at it for me and let me know where I'm going wrong and perhaps write an example of the correct AS that would be "most excellent" (Quote by Bill and Ted).

Anywho, I`m jabbering again.

Regards,

Email Button? This Has Got To Be Simple
I had a text object that had an email link
mailto:bla@blah.com

the client wants roll over states so I made it into a button.
Then the hit area doesn't work right for the button, when I roll over the text if it has the mailto link on the text, it strobes back to the normal text and back to the link text.

so I took off the link tha was on the text and did an
on(press){
getURL("mailto:blah@blah.com");
}
It didn't do anything, so I added
getURL("mailto:blah@blah.com","_blank");
still nothing,

what am i overlooking?

Simple Forms To Email
I am trying to create a simple web page with 2 input text fields at the bottom for users to input a company name and donation amount. I have these created in flash mx2004 version 7 but I don't know what actions to attach to them to have the information users input transferred to an email address. Any help would be appreciated.

Shannon

Simple Email Submission?
Hi All!

I am desperately trying to get Flash 8 to send a simple email for registration from my site. I don't need any databases or complicated scripts...i just need two fields sent to a php file and then to my email address.

I have tried using other people's kind offerings, but they always submit three or four fields, and trying to amend the scripts causes a nighmare!

I have tried several times and cannot get a reliable solution...please help?? I'm sure it's simple to do for those in the know.

Thanks in advance.....a desperate flasher!

Simple Email Button
is there a way to create a simple button that will open an email client to send a message to a desired email address.


cheers
rat

Need Simple Email Form
Hi All,

I need to include a simple form on my flash website that includes fields for first and last name, email address and a comments box. With the result sent to my email address.

Can anyone point me in the right direction or suggest a script or method to do this?

thanks in advance....

[F8] Help With Simple Email Validation
Please help me! I've been pulling my hair out trying to get this to work - i'm trying to create a simple function for the user to add their email to a mailing list. I've got it working, but without validation. I can find lots of code/actionscript tutorials and examples, but i just dont know where/how to insert it. Thanks in advance:

email_txt.restrict = "a-z_.@0-9";
email_txt.maxChars = 40;


status_txt.text = '';



// where do i put this?

String.prototype.validateEmail = function() {
var emailCorrect = undefined;
var fstLett = this.substring(0, 1);
var lastLett = this.substring(this.length, -1);
var minLettAfterLastPoint = 2;
var maxLettAfterLastPoint = 4;
var minLettBeforeAt = 1;
var maxLettBeforeAt = 20;
var minLettAfterAt = maxLettAfterLastPoint;
var firstAt = this.indexOf("@", 0);
var lastAt = this.lastIndexOf("@", this.length);
var strBeforeAt = this.substring(0, firstAt);
var lettBeforeAt = this.charAt(firstAt-1);
var lettAfterAt = this.charAt(firstAt+1);
var firstScore = this.indexOf("-", 0);
var lastScore = this.lastIndexOf("-", this.length);
var lettBeforeScore = this.charAt(firstScore-1);
var lettAfterScore = this.charAt(firstScore+1);
var firstUnderscore = this.indexOf("_", 0);
var lastUnderscore = this.lastIndexOf("_", this.length);
var lettBeforeUnderscore = this.charAt(firstUnderscore-1);
var lettAfterUnderscore = this.charAt(firstUnderscore+1);
var firstPoint = this.indexOf(".", 0);
var lastPoint = this.lastIndexOf(".", this.length);
var lettAfterLastPoint = this.length-lastPoint-1;
var morePoints = this.indexOf("..", 0);
var moreScore = this.indexOf("--", 0);
var extensionScore = this.indexOf("-", lastPoint);
var extensionUnderscore = this.indexOf("_", lastPoint);
if (!isNaN(fstLett) || !isNaN(lastLett) || fstLett == "." || fstLett == "-" || fstLett == "_" || lastLett == "." || lastLett == "-" || lastLett == "_" || firstAt == -1 || firstAt>=(this.length-minLettAfterAt) || firstAt == 0 || firstAt !== lastAt || firstPoint == 0 || lastPoint == -1 || lettAfterLastPoint<minLettAfterLastPoint || lettAfterLastPoint>maxLettAfterLastPoint || lettBeforeAt == "." || lettBeforeAt == "_" || lettBeforeAt == "-" || lettAfterAt == "." || lettAfterAt == "_" || lettAfterAt == "-" || lettBeforeScore == "." || lettBeforeScore == "_" || lettBeforeScore == "@" || lettAfterScore == "." || lettAfterScore == "_" || lettAfterScore == "@" || lettBeforeUnderscore == "." || lettBeforeUnderscore == "-" || lettBeforeUnderscore == "@" || lettAfterUnderscore == "." || lettAfterUnderscore == "-" || lettAfterUnderscore == "@" || morePoints !== -1 || moreScore !== -1 || extensionScore !== -1 || extensionUnderscore !== -1 || strBeforeAt.length<minLettBeforeAt || strBeforeAt.length>maxLettBeforeAt) {
emailCorrect = false;
} else {
emailCorrect = true;
}
return emailCorrect;
};





submit_btn.onRelease = function()
{
var email = email_txt.text;

// are all the fields filled?
if (email == '') {
status_txt.text = "Enter Your Email";
return;
}


// yes, all fields filled
sendEmail(email);

// sending data...
status_txt.text = "Processing...";

// prevent submitting again by disabling the button
this.enabled = true;
};


function sendEmail(email)
{
var myData = new LoadVars();

myData.email = email;

myData.onLoad = function(ok) {
if (ok) {
status_txt.text = this.message;
} else {
status_txt.text = "Try Again Later";
}
submit_btn.enabled = true;
};

myData.sendAndLoad('contactform.php', myData, 'POST');
}

Simple Email Question
Alright, so, i'm tasked with a project where I'm having the user type an essay into an input text form, and then have a submit button where it sends the written essay to an email address.

so, the input text's var name = EssayAnswer.

the code on my submit button is:
on(release){
getURL("mailto:random@random.com?subject=Essay&bod y='EssayAnswer'")
}

if you take that url and place into your web browser it'll open up your default email program, enter in "essay" for the subject. and make the body "essayanswer"

--------------------

So here's my question. When you place this code into a button the browser only navigates to "mailto:random@random.com" completely neglecting to add the ?subject and latter stages of the adress. My thoughts are that it's because of the question mark being an incorrect charecter. I tried the URL encoding for a question mark (%3F) and still doesn't work. All that does is make the recipient of the email "random@random.com?subject=Essay&body='EssayAnswer ' "

as if the entire line was meant to be the recipients address.

How can I A). Get flash to send the correct data to the browser?
and B) Can i make the subject and body equal to string variables so that they can be user defined through input text boxes?

P.S. Since this is not meant to be a web app, and merely a program ran locally from the user's machine I'd like to try avoiding using the PHP method of sending email. for 1) because i don't think that's what the boss has in mind, and 2) i'm not 100% how to do it.

Thanks alot in advance! I've been trying at it for a couple of days with no avail so any response or advice would be incredibly appreciated!


-Matt

How To Do A Simple Email Link?
I want to have a button that when the user clicks it, it will open up the user's email account and put my email in the send to field, so they can send me an email. Like a "click here to email" button. Any one have the code that I would use or any advice?

A Simple Email Form
Can someone tell me where I can find a Email form for flash that actually works and could be easy to install
I have tried the one from kirupa but it send the mail but in the body doesnt appear any information
http://www.kirupa.com/developer/acti..._php_email.htm
lol
please someone help im desesperate

Simple Email From Flash.
I set up a very simple version, but it's still not sending me an email.

FLASH:
Code:
var varSend:URLRequest = new URLRequest("email_parse.php");
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;

varLoader.load(varSend);

email_parse.php:
PHP Code:



<? 

$to = "XXX@gmail.com"; 
$from = "XXX@yahoo.com";
$msg = "this is the message"; 
$subject = "this is the subject";
mail($to, $subject, $msg, "From: me
Reply-To: $from
"); 

?>




It is my understanding that the problem could be that my server isnt setup for emailing through php. If so, is there a way to check this?

A Simple Email Form
Can someone tell me where I can find a Email form for flash that actually works and could be easy to install
I have tried the one from kirupa but it send the mail but in the body doesnt appear any information
http://www.kirupa.com/developer/acti..._php_email.htm
lol
please someone help im desesperate

Simple Email From Flash (using Php)
I set up a very simple version, but it's still not sending me an email.

FLASH:Code:

var varSend:URLRequest = new URLRequest("email_parse.php");
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;

varLoader.load(varSend);


email_parse.php:Code:

<?

$to = "XXX@gmail.com";
$from = "XXX@yahoo.com";
$msg = "this is the message";
$subject = "this is the subject";
mail($to, $subject, $msg, "From: me
Reply-To: $from
");

?>

It is my understanding that the problem could be that my server isnt setup for emailing through php. If so, is there a way to check?

Email Request Song Function
hey...hope you guys can help me here!

i'm in the process of redesigning my site about basketball and music, and in the new design i've got a 'beatbox' player thing which basically plays music tracks while viewers surf round my site...anyway, underneath this player, i want to add a small line or two, that users can write in the title of their favourite tracks and email this to me, so that i can post up these tracks in the beatbox player in the next update, etc...

what i would like your help with is i dont know how to set this up!...I want to have an input field where someone can write their name, then one to write the requested tracks..., then obviously i want to add a button to send the inputed text to my email address!...(ya get me?)

i suppose its just like adding a mailing list function, where people write in their email addresses, right?

i hope you understand what i mean!...so, do i need to use any php scripts?..('cause if i do...help!)....also, do i need to create some aort of form within flash?....please bear in mind, i need this to be small, as it wont take up hardly any space on the main screen!....

so, can anyone help...please tell me how i can do this...it may be simple, but i dont know how!!

cheers

AS3 Function To Open End Users Email App?
I am new to AS and am trying to bind my email address (buttonSymbol) to a function that will open end users default email app and populate To: with my address. Any ideas?

Email File Attachements Function
Hi, the idea is to have an email system which would also allow a user to attachment a file to the email , anyone got any ideas on how to do this?

thanx!

Simple Email Link Question
Hi Guys

I have a simple question. How do I make my email address on my site "active" so when its clicked, it pops open your email application. A very common thing I see, but don't know how to do it.

You can check out my site at
http://www.Geneleedesign.com

click on: contact...then click on email..you'll see what I mean.

feedback would also be much appreciated
thanks
Gene

Simple Submit Email Form
this is probably the easiest thing in the book but I'm pretty new at this.

How do you make a form that simply allows users to type thier email address into a form box and press a SUBMIT button to send it to my email address?

I'm trying to create a mailing list.

Thank you.
Greg

Simple SUBMIT EMAIL Form
this is probably the easiest thing in the book but I'm pretty new at this.

How do you make a form that simply allows users to type thier email address into a form box and press a SUBMIT button to send it to my email address?

I'm trying to create a mailing list.

Thank you.
Greg

How To Build A Simple Email Form?
I want to build a simple email form with name, email id and comments fields. Once the user presses the send button it should come to my email account. Can this be done without using php or cgi or asp etc? Is there a

On release(........)
mailto....

kind of script in flash which will send it the email to me. Please dont get irritated for asking like this...after all I am new to flash.

Simple Flash Email Form
hello,


please please please help, i need to create a simple online form with flash. I can do the input boxes, the problem i cant get round is how to actually send it via email to a specific address. i have no knowledge of cgi, php or anything like that. Can the HTML tag "A href mailto" be used???


Please please help


Thanks in advance


David

Mailing List - Simple Email
Hello everybody, I'm working a site for my band, I want to have a place where the user can join our Mailing List by entering their email, and clicking go. I then want that email to be sent to the band website.. Very simple right?

here's the url:
http://hybrid.concordia.ca/~n_earle/...long/index.htm

Thanks in advance.
-Noah

Email Validation On Simple Form
I am sure this is trivial to most, however, I am struggling. I have a simple form on which I am trying to add very basic email verification otherwise it is possible for a user to send me rubbish that appears to come from a non existent mailbox at my domain. I have changed the action script to the one below but keep getting the fault shown

submit_btn.onRelease = function() {
if (!email_txt.length || email_txt.indexOf("@") == -1 || email_txt.indexOf(".") == -1) {
status_txt.text = "Invalid Email.";

} else if (!subject_txt.length) {
status_txt.text = "Missing Subject";

} else if (!message_txt.length) {
status_txt.text = "Missing Message";

} else {
loadVariablesNum("form.php", 0, "POST");
name = "Full Name:";
email = "Email address:";
message = "thank you, your message has been sent";
}

}


The error I get is as follows;

**Error** Symbol=Symbol 39 FORM, layer=Symbol 38, frame=1:Line 1: Statement must appear within on handler
submit_btn.onRelease = function() {

Total ActionScript Errors: 1 Reported Errors: 1

As far as I am aware, the layout is right and I just don't no what to do next.

Can somebody please help, if it's not obvious, I am very new at this!!

Simple Email Validation Problem
ActionScript Code:
on (release) {        if (!form.length || form.indexOf("@") == -1 || form.indexOf(".") == -1) {     message = "Please enter a valid E-mail address";         } else {     loadVariablesNum("mail.php", "0", "POST");     message = "Sending...";     }}


even when its a valid email address it still gives the invalid email message. any ideas?

Simple Email Form Problem
I have followed the "Flash-Based Email Form Using PHP by senocular " tutorial on this site, and have got it to work. However, when my Flash email form .swf is loaded into another Flash movie, when the user clicks 'Send' , the email sends but the flash movie is not moved onto the next frame (where it says thanks for sending an email etc). This is the ActionScript which is applied to the form:

onClipEvent(data){
// show email sent screen
_root.nextFrame();
}

I dont understand why this works when the email swf is played on its own, but doesnt work when loaded into another movie. I have placed this line in frame 1 but still no joy:

this._lockroot = true;

any help please?

Problem With Simple Email Form
I am making a simple email form based of a tutorial found here : http://www.flzone.net/showDetail.asp...d=2&NewsId=756

I changed the send to email in the php and then uploaded the swf and php to my server which is running AppServ with PHP. When I test the form I fail to recieve anything in my inbox. What are the possible causes for this error? And what should I do to fix it?

Simple Email Form Not Sending?
Hello I have used the flash email form from Senocular http://www.kirupa.com/developer/actionscript/flash_php_email.htm
I have added the php, swf and html files to my server. It all appears to work but I receive no email to my address??
This should all be simple. Can anyone suggest a reason why it would not work???
I have followed the tutorial to the letter as far as I can see and the flash page seems to send to the php though nothing happens after this!!

Simple Email Validation Problem
ActionScript Code:
on (release) {        if (!form.length || form.indexOf("@") == -1 || form.indexOf(".") == -1) {     message = "Please enter a valid E-mail address";         } else {     loadVariablesNum("mail.php", "0", "POST");     message = "Sending...";     }}


even when its a valid email address it still gives the invalid email message. any ideas?

Simple Email Form Problem
I have followed the "Flash-Based Email Form Using PHP by senocular " tutorial on this site, and have got it to work. However, when my Flash email form .swf is loaded into another Flash movie, when the user clicks 'Send' , the email sends but the flash movie is not moved onto the next frame (where it says thanks for sending an email etc). This is the ActionScript which is applied to the form:

onClipEvent(data){
// show email sent screen
_root.nextFrame();
}

I dont understand why this works when the email swf is played on its own, but doesnt work when loaded into another movie. I have placed this line in frame 1 but still no joy:

this._lockroot = true;

any help please?

Mailto Function - Adding Text To Email
Hi all,

There was a post in here where it was explained how to use the GetURL action to open an email with the address and also the subject line filled in. mailto:info@mysite.com?Subject=whatever I think it is.

I'd like to know if you can also put some text in the body of the email.

ta

One Simple And Stupid About Opening An Email In Swf File
Can anyone tell me how to make an action on email button so it opens up email message from swf file.

Simple Email Link That Opens NEW MESSAGE Box
Hello everyone; I am newbie and I need help creating a button that simply opens a New Message window with my email address in it; I want users on my site to be able to send me as much info as they want including file attachments, so I don't want to use a form.

Email Link Simple As It Sounds I Forgot How To Do It Lol
whats the code on a button so when its clicked a email window pops up like in html its really simple can you just post it use dave@dave.com thanks guys

Email Link Simple As It Sounds I Forgot How To Do It Lol
whats the code on a button so when its clicked a email window pops up like in html its really simple can you just post it use dave@dave.com thanks guys

Email Link Simple As It Sounds I Forgot How To Do It Lol
whats the code on a button so when its clicked a email window pops up like in html its really simple can you just post it use dave@dave.com thanks guys

Email Link Simple As It Sounds I Forgot How To Do It Lol
whats the code on a button so when its clicked a email window pops up like in html its really simple can you just post it use dave@dave.com thanks guys

Simple Email List Subscription Form
Hi Folks!

First, thanks to anyone that can lend any help...I'm sort of banging my head against the desk on this one!

I'm making an email signup form for people to input their email address to get sent to a php form (hosted on another site)...I took a look at the tutorial on AS.org and thought I did everything right, but it's not quite working! I've also done a search but everyone seems to fix there problems before someone can help them!

My HTML tag is as follows:

PHP Code:



<form method=post action=http://www.ymlp.com/subscribe.php?bottleofjustus>
<table border=0>
**<tr>
****<td><input type="text" name="YMLP0" size="20"></td>
****<td><input type="submit" value="Submit"></td>
**</tr>
</table>
</form>




Now my AS in my MC (this MC is contained in a huge movie scene) for my "submit" button is this:

PHP Code:



on (release) {
        getURL("http://www.ymlp.com/subscribe.php?bottleofjustus", "_blank", "POST");
}




And I have an input text field with the variable YMLP0...which is what it should be, correct?

I've uploaded a simple FLA/SWF here.

The form get's sent to the page fine, but it's telling me I haven't input an email address...so if you guys have any thoughts, please let me know!

Thanks so much!
Dave

Simple Flash Email Submission Help Needed
Hello.

Im not very up on my Flash skills, so im after some help on this.
I just want a very simple Input Box & Submission Button.

Users enter their email > click submit and the email is sent off.

Know I know how to handle the email using PHP.
So I can build a PHP page to take in a variable $email.

However im not 100% on the flash side.

I have created an input box.
I have created a button graphic and converted it to a button.

Within the button, I have added the following Code:


PHP Code:



on (release) {
        if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
        EmailStatus = "Please enter a valid E-mail address";
    }
    else
    {
        loadVariablesNum ("phpemail.php", "0", "Post");
        EmailStatus = "Sending... one Moment .. or two.. sometimes it's faster then other times";
        
    }
}




I found this code in an example.

Currently when i export, it does nothing.
I think i need to set the input box with the name "Email"

Can anyone give me a hand getting this going?
Many THanks

Flash Email Form - Simple Question
I was looking at a tutorial the other day for a Flash email form, it said you have to use PHPObject to make it... But then I stumbled across a similar form which just had a Flash file and a PHP file... I was wondering the difference? They both seemed to do the same thing, but using PHPObject you seem to have to use a whole heap of files... Probably a dumb question but if someone could explain would be greatly appreciated!

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