View Full Version : open default mail program
kool-Aid
09-18-2006, 06:55 PM
how would i script a button to open the users default mail program?
CyanBlue
09-18-2006, 07:04 PM
Howdy and Welcome... ;)
Use getURL() function with mailto protocol... That'll invoke a default email agent in the user's computer if there is one registered...
getURL("mailto:email@Address.com");
kool-Aid
09-18-2006, 07:07 PM
thanks
eliddell
09-18-2006, 07:30 PM
you are better off creating a flash form that sends to a php or cgi formmailer script. the mailto: link is in my opinion a bad practice. i'd say 90% of people using the internet do not have a default mail program. instead they log into a website like gmail and such. unless your target is buisnesses only i would strongly recomend building a form in flash that generates the email for them.
CyanBlue
09-18-2006, 07:37 PM
Well... I wouldn't say it is a bad practice... I do agree that PHP or CGI version is whole lot better, but if your host does not provide one and if you cannot afford it, you've got to use whatever you've got... ;)
eliddell
09-18-2006, 08:32 PM
i say its a bad practice only because if the user doesn't have a mail program like outlook, then the link doesn't do anything, so unless you have the email address written in selectable text format you might be loosing out on all the hot steamy "what are you wearing?" messages.. and i would guess that just about every hosting service now has php and cgi installed, not to mention they probably already come with the form_mailer i always use godaddy and even their most basic of $4 /month hosting comes with both.
besides the original poster here can learn more then he bargined for
btw what the hell is the september 18th club?
CyanBlue
09-18-2006, 10:46 PM
True... But don't forget that there are many people who just do not want to pay that much... I've seen many of them... ;)
What's that 9/18 club for???
kool-Aid
02-19-2007, 04:12 PM
I was the og poster on this one, and i did learn a lot from this thread. Here is a great tutorial on php and forms that e-mail. Making the form definately increased the responce from our site immediately thanks guys.
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
CyanBlue
02-19-2007, 04:25 PM
Since you brought it back up... ;)
I have a couple laying around as well...
http://tutorials.flashvacuum.com/index.php?show=Email101
http://tutorials.flashvacuum.com/index.php?show=Email102
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.