I am new to flex 4.6 and want to send mail with all the fields of email aumatically generated. i want to do this all on a single click.
Asked
Active
Viewed 503 times
1 Answers
0
See the Employee Directory example project for Android, Blackberry and iOS by Christophe Coenraets:
protected function list_changeHandler(event:IndexChangeEvent):void
{
var action:Object = list.selectedItem;
switch (action.type)
{
case "tel":
navigateToURL(new URLRequest("tel:"+action.details));
break;
case "sms":
navigateToURL(new URLRequest("sms:"+action.details));
break;
case "mailto":
navigateToURL(new URLRequest("mailto:"+action.details));
break;
}
}
For subject and other fields try appending ?subject=
and &body=
after the mail address eventually combined with escape function.

Alexander Farber
- 21,519
- 75
- 241
- 416