Skip to main content
April 19, 2006
Question

Sending email with gertURL

  • April 19, 2006
  • 4 replies
  • 426 views
I created a button to send an email. As I usually work on Mac I didn't have any problem, but the client called me to say that the button doen't work, and it do not work on windows if he has installed the outlook express. Does anyone Know how to do this. Is there another way than getURL(mailto:jsdj@where.com).???
Thanks
Marta
This topic has been closed for replies.

4 replies

April 20, 2006
Nothing to do with Flash. For "mailto:" to work, you need to have a default e-mail application set. On windows, see the Internet settings "Applications" tab.
Note that I personnaly disadvise the use of "mailto:" because not every machine have a default mail client set (those who uses webmail, shares session, connects from cybercafé, etc...). And prefer server-side solution for messaging or mail sending .
April 20, 2006
Thank you all for your help.
I finally got a solution. I'm using fscommand to execute a program JEMAIL.exe that at last opens the email program!!. So instead of using getURL, I'm using:
on(release){
fscommand("exec","JEMAIL.exe")
}
I got this program on : http://flashjester.com/?section=faq&cPath=28_34
Thanks again for your help.
Marta
Participant
April 20, 2006
hi
plz check the above link, I'v created a simpe textbox and give it mailto:raheel@kse.com.pk without any quotes its working properly on windows. no mater which email client ur using either Outlook Express(installed with IE) or Microsoft Outlook Express(comes with MS-Office)

http://www.geocities.com/comp_engg/test1.html

hope u got my point!
Inspiring
April 19, 2006
Marta,

> I created a button to send an email. As I usually work on
> Mac I didn't have any problem, but the client called me to
> say that the button doen't work, and it do not work on
> windows if he has installed the outlook express.

Rubbish!

> Does anyone Know how to do this. Is there another way
> than getURL(mailto:jsdj@where.com).???

getURL() works just the way a hyperlink does in HTML. If a mailto: link
works for this client in an HTML page, it will work in Flash. OF course,
the function must be properly used. According to the documentation, the
parameter must be a string (see the getURL() entry in the ActionScript
Language Reference for details). In your sample above, you haven't provided
quotation marks, so the mailto: part isn't a string.


David
stiller (at) quip (dot) net
Dev essays: http://www.quip.net/blog/
"Luck is the residue of good design."


Inspiring
April 19, 2006
It doesn't work cause you need to use quotes, the correct syntax is :

getURL("mailto:jsdj@where.com");
April 20, 2006
I wrote it wrong when I sent the message, I am using it with cuotes. It works on Mac and even on Windows when the user has Microsoft Outlook but not with outlook express. Does it have any sense?
Thank you very much for your reply.
Marta