简体   繁体   中英

How to send mail from flex mobile application 4.6 without popping up any mail client. I am going to deploy this app on Ios and Android.

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.

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 .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM