all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

mailto paramaters not working anymore ...


mailto paramaters not working anymore ... SkyRob
3/11/2006 8:39:53 PM
flash actionscript:
Hey there,

I was using this code quite some time (about a year or so) and it always
worked properly.

Now, it don't anymore. It still starts the email-client, but only the reciever
of the message is there. The subject and the body of the message remain empty.
I am thinking it might be some security stuff that had changed in a patch
(Windows, Outlook, Flash?). Any ideas would be greatly appreceated.

Thanks in advance,

Sky



// start E-Mail program with data
TestErgebnis = "Testergebnis " + SeminarName + " " + (MyPoints*4) + "/" +
(MaxPoints*3) + "/" + (ProzRichtig*2) + "/" + Datum.getDate() + "/" +
Datum.getMonth() + "/" + Datum.getYear();
emailBefehl = "mailto:LeichterLernen <testergebnis@leichter-lernen.com>?";
emailBefehl += ("subject=" + Testergebnis);
emailBefehl += ("&body=" + Testergebnis + nl + nl + Gender + " " + Titel + " "
+ Vorname + " " + Nachname + nl + nl);
emailBefehl += ("ersucht um Zusendung einer Teilnahmebest?tigung f?r das
Multimedia Seminar " + SeminarName + "." + nl + nl);
getURL(emailBefehl);
Re: mailto paramaters not working anymore ... SkyRob
3/12/2006 6:49:35 PM
Guess I take it, noone has a solution for this problem. Maybe anyone able to verify that the mailto does not work for him either or is there anyone where it works? Thanks in advance.

Re: mailto paramaters not working anymore ... blemmo
3/12/2006 8:19:25 PM
Hi,

the code is ok, but the newer Flash players are case sensitive, so 'TestErgebnis' and 'Testergebnis' aren't the same anymore. Should work fine when you change the spelling.

greets,
Re: mailto paramaters not working anymore ... SkyRob
3/12/2006 9:30:14 PM
Hey there Blemmo,

thank you very much for the suggestion. Actually you are right that it should
be case sensitive anyway, so I consider this an error in my code and will fix
it.

Unfortunately, this does not cause the problem. Even after I changed it, the
behaviour is still the same. E-Mail Client gets started, rhe reviever is filled
in, subject and body remains empty.

For testing purposes I even changed the code now as following:

It still does NOT work. I wodner if anyone is able on a current Windows XP to
use the mailto command, including the subject and body parameters, properly. I
have another Windows XP Version on one of my PCs that does not use autoupdate,
so its actually about 2 - 3 months old, and there the program still works
great.

Any ideas?

Sky

getURL("mailto:LeichterLernen
<mailtotest@leichter-lernen.com>?subject=mailtoTestSubjectText&body=mailtoTestBo
dyText");
Re: mailto paramaters not working anymore ... SkyRob
3/12/2006 10:19:24 PM
Ok, one step further now. It's definitiv not Windows / Office. The problem
comes with Flash 8.

I changed the code one more time, since I tought the case sensitivity might be
need for "Subject" and "Body" as well, but it still does not work.

Sky

getURL("mailto:LeichterLernen
<mailtotest@leichter-lernen.com>?Subject=mailtoTestSubjectText&Body=mailtoTestBo
dyText");
Re: mailto paramaters not working anymore ... Wolf van Ween
3/12/2006 10:23:14 PM
Sky, copy the URL (the stuff between the "") to your browser's address bar and
hit enter. If I do this, a new email opens with all the stuff filled out as you
want it. Might be some other setting on your PC.
To be sure, send the link to your Flash movie and tell me where to click to
test the mail function.
Wolf
Re: mailto paramaters not working anymore ... SkyRob
3/12/2006 10:53:31 PM
Hey Wolf,

thanks but no, actually it's not only on my PCs, I ran into it cause a
customer told me his problem. It is absulutely sure Flash 8.

In fact, by now I know that the command needs 2 further paramters in Flash 8,
so it looks like:

Have to do some further testing, but that should explain and solve it.

Thanks for your ideas.

Sky


getURL("mailto:LeichterLernen
<mailtotest@leichter-lernen.com>?Subject=mailtoTestSubjectText&Body=mailtoTestBo
dyText", "", "GET");
Re: mailto paramaters not working anymore ... Wolf van Ween
3/12/2006 11:04:45 PM
Flash 8 does it again :-)
Viel Gl?ck
Re: mailto paramaters not working anymore ... SkyRob
3/12/2006 11:07:16 PM
Danke ;=)

As soon as I am done with testing I will make a final post on this subject, maybe it helps someone else who run into the same problem.

Re: mailto paramaters not working anymore ... SkyRob
3/14/2006 10:30:44 PM
Sigh, I am lost again.

As it is now, the code works perfect with Flash 7. With Flash 8, it works when
I use the "Test Movie" function from Flash (CTRL+RETURN) no matter if I start
if from Flash Prof. 8 or Flash MX. But when I publish it, the published version
(or even "Test publishing" - CTRL-F12) does NOT work. Neither via the HTML
file, nor when I load the swf file in the player.

It also does not matter if I use the parameter ,"","GET" or ,"","POST" at the
end.

So to sum it up again, till Flash 7, everything works fine, with Flash 8, only
the "Test movie" works, everything else starts only the email-program and fills
in the "`TO:" parameter, no "SUBJECT" and no "BODY".

On a side note, when I copy the mailto-command manually to the browser it
starts the email correct, including subject and body.

Any idea?

Thanks in advance,

Sky

Re: mailto paramaters not working anymore ... Wolf van Ween
3/15/2006 12:00:00 AM
Rob, try another one: url-encode your string - maybe there's something with the
special characters that gets lost in the way on Flash 8. Unfortunately I can't
test it because I don't have Flash 8.



mailto%3ALeichterLernen+%3Cmailtotest%40leichter-lernen.com%3E%3FSubject%3Dmailt
oTestSubjectText%26Body%3DmailtoTestBodyText
Alternatively, leave the ":" intact, so Flash sees a full protocol:

mailto:LeichterLernen+%3Cmailtotest%40leichter-lernen.com%3E%3FSubject%3DmailtoT
estSubjectText%26Body%3DmailtoTestBodyText
Re: mailto paramaters not working anymore ... SkyRob
3/15/2006 12:00:00 AM
Hey Wolf,

I tried both but unfortunately both don't work.

1st gets only to the browser
mailto:LeichterLernen+<mailtotest@leichter-lernen.com>
butdoesn't even open the email-client

2nd starts email-program and fills in "TO:"

LeichterLernen+<mailtotest@leichter-lernen.com>?Subject=mailtoTestSubjectText&Bo
dy=mailtoTestBodyText

Damn Flash :(

Sky
Re: mailto paramaters not working anymore ... kgui
3/15/2006 12:00:00 AM
I have Flash 8 professional.
I created a new Flash movie with one MovieClip, on this clip I put the
actionscript;

on ( release ) {
getURL("mailto:LeichterLernen
<mailtotest@leichter-lernen.com>?Subject=mailtoTestSubjectText&Body=mailtoTestBo
dyText", "", "GET");
}

saved with default Publish settings. Published the movie with Flash 8, Bottom
Up, ActionScript 2.0, with HTML.
And everything works fine here. When I click the button (MovieClip) my Mozilla
Thunderbird is started with all field filled in.

No problems here.

Does your code reach the GetURL statement? (trace action)
Is your body message tot too long. My (old) experience is that de message in
the body tag can not be to long.

Good luck
Pieter
Re: mailto paramaters not working anymore ... SkyRob
3/15/2006 12:48:37 PM
Hey Pieter,

thanks for trying it . I have no clue why it does not work for me. I use
exact?y the code line that I published and that you used too.

It works perfect with Flash 7.

Once I install the Flash Player 8, it works only from the Flash Editor when I
use "Test Movie" (CTRL+ENTER). It does not work when I start the published
HTML-FIle anymore, it does not work when I load the published SWF-File in the
Flash Player.

When I use "Publish preview" (not sure how it is exactly called in the English
version since I use the German Version) the preview:

"Standard - (HTML) F12" - does not work
"Flash" - works
"HTML" - does not work

Yes, it does reach the getURL function since it loads the email client and
puts in the "TO:" paramter. It does not pass on the "Subject" and "Body"
Parameter though. If I copy the mailto line from the flash code and paste it in
the URL/Adress line of the browser, the email starts correctly, including
"Subject" and "Body".

"Is your body message tot too long. My (old) experience is that de message in
the body tag can not be to long."
Well, atm it is exactly the line that I posted and that you used in your test
as well. That is hardly to long.

What really drives me nuts is why does it work when I use "Test movie" but not
when I load the published .SWF file into the player?

Sky
Re: mailto paramaters not working anymore ... kgui
3/15/2006 2:18:18 PM
Does the problem occur in other browsers as well (Firefox, MSIE, Opera).
It seams to me, it's not a Flash problem but a browser problem. Did you
installed the correct player, Can you see other Flash movies in the browser.
Can it be a problem of your virus scanner / fire wall?
Or other sequrity settings in windows.

You can click on a Flash with the right mousebutton, select option 'Settings',
maybe something wrong here?

best luck,
Pieter
Re: mailto paramaters not working anymore ... SkyRob
3/15/2006 4:57:09 PM
Hey Pieter,

thanks for the ideas. It is hard to believe for me that the problem comes not
from Flash 8 since

a) It works perfect with Flash 7 (exact the same environment, only when I move
back to Flash 7)

b) When I start it inside Flash (Test movie) it works, even with Flash 8, and
it uses the same Browser / E-Mail that I have installed

c) Yes, all other Flash movies play well, only this one function
(getURL(mailto)) does not work properly for me. After all, I think this line is
the most simple part of code I use :=)

d) It happens at least on all my PCs here (4 Desktop, 2 Notebook) and on one
of a customer

e) When I copy/paste the string in the browser (I use MS IE btw.) it works
perfect

Not sure yet how it is with other browsers, I think we use Avant on one of the
PCs, not sure if Opera, Modzilla or something is used somewehre as well, I have
to check that.

I do not understand why the code works for you and not for me. I checked my
"Publish Settings" but can't find any difference. Than again, when "Preview
Publish Flash" works but the pubkusged SWF-File outside not, it shouldn't be a
part of the publishing settings either ... sigh

Sky

Re: mailto paramaters not working anymore ... blemmo
3/15/2006 5:09:29 PM
Well, it doesn't work for me neither (Flash 8, Win2K). Just as SkyRob
describes: it does work when testing in Flash, but not standalone or in a
browser window. As it seems to be Flash 8 related, I'd guess it may be the new
security model in Flash 8, but I couldn't find anything about that on the
web... Maybe contact Macromedia about that?

greets,
blemmo
Re: mailto paramaters not working anymore ... Tiemen Rapati
3/15/2006 6:10:49 PM
I believe I had some similar problem. In my case it was in the Export
Settings. You have to fiddle a bit with the types of ActionScript and the
player version. Really, this is worth a shot. Looking at your comments this
could very well be the problem.

Good luck!
Tiemen

[quoted text, click to view]

Re: mailto paramaters not working anymore ... SkyRob
3/16/2006 12:00:00 AM
I tried different publishing settings, but as soon as I use it on a pc with Flash 8 it does not work, no matter what.

Re: mailto paramaters not working anymore ... kgui
3/16/2006 12:00:00 AM
Is an old version Flash still on your computer (Flash MX).
Re: mailto paramaters not working anymore ... SkyRob
3/16/2006 12:00:00 AM
Just on one comp, my developer PC. Not on the 6 others.

Re: mailto paramaters not working anymore ... Tiemen Rapati
3/16/2006 12:00:00 AM
Like I said, I had a very similar problem; movie displaying correctly in the
Flash shell viewer, but behaving outrageous when imported into a html file.
(and thus displayed by the flash 8 browser plugin) This was solved by
fiddling with the Export/Publish settings. But I'm afraid that's all I can
contribute..


[quoted text, click to view]

Re: mailto paramaters not working anymore ... SkyRob
3/16/2006 1:15:40 PM
Hey Tiem,

as I said, I tried a?? publishing settings that I could imagine. Also, not
only with the html-plugin it wont work, loading the flash movie in the player
wont work either. Only the "test movie"/"Preview Publish Flash" function within
the developing environment works (and of course Flash 7 =)).

Sky
Re: mailto paramaters not working anymore ... SkyRob
3/16/2006 3:09:52 PM
Hehe yea, one would think it works that way, but it obviously doesn't. One
works, the other don't.

As for the Flash 8: it IS published in Flash 8, you can easy see that when you
try to run it on a pc with flash 7 and it asks you to download Flash 8 to see
the movie.

Sky
Re: mailto paramaters not working anymore ... Tiemen Rapati
3/16/2006 3:37:18 PM
Wow that's strange.. I always thought the test Movie command simply exports
the swf and views it with the shell Flash viewer (only available on machines
that have Flash installed) Actually.. I'm still 75% sure it does that...

I'll have a closer look at it tonight.

Regards,
Tiemen

_____

Tiemen Rapati

by tiemen rapati 2006 | tiemenrapati.com
freelance webdesign & press

Re: mailto paramaters not working anymore ... SkyRob
3/17/2006 12:00:00 AM
Re: mailto paramaters not working anymore ... solr
3/17/2006 12:56:58 AM
I created a simple movie with kgui code.

On Windows XP Home SP2, with Flash 8 Basic and IE6, it works properly.
I used all the default Publish Settings, and ran the output from the HTML file
that was created by Flash.

Sol
AddThis Social Bookmark Button