0

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.

rst
  • 1
  • 1
  • 3

1 Answers1

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.

enter image description here

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