[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

Sending an email via Flash CS3 and the users email program

I would like to put a button onto my flash page that creates a new email via the users email program (regardless of what it is).  I would also like to be able to add a subject line and insert a little text into the body (whilst maintaining the users signature).

I am using AS3 (for the first time), so any help would be grealy appreciated.
0
Andy Brown
Asked:
Andy Brown
  • 4
  • 3
1 Solution
 
moagriusCommented:
you'd have to use a link in a textfield with htmlText, and the standard mailto protocol.  e.g.,


var textfield:TextField = new TextField();
textfield.htmlText = "<a href='mailto:someone@somedomain.com?subject=somesubject&body=somemoretext'">click to send mail in your default mail program</a>";
addChild(textfield);

Open in new window

0
 
moagriusCommented:
oops - left a hanging quote:
var textfield:TextField = new TextField();
textfield.htmlText = "<a href='mailto:someone@somedomain.com?subject=somesubject&body=somemoretext'>click to send mail in your default mail program</a>";
addChild(textfield);

Open in new window

0
 
Andy BrownAuthor Commented:
Thanks for your quick response but I'm kind of new to this.

What do you mean by, "Link in  a textfield"
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
moagriusCommented:
a link:

<a href="mailto:name@domain.com">mail me</a>

in a textfield:

var textfield:TextField = new TextField();

the example I gave above is functional.
0
 
Andy BrownAuthor Commented:
Got you - it seemed to work, but was missing the users auto-signature.  Is it possible to add this?
0
 
moagriusCommented:
I don't believe so, no.
0
 
Andy BrownAuthor Commented:
Really appreciate your help on this one.  I guess it would a similar syntax for AS2.

Thanks for all of your help.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now