AnsweredAssumed Answered

Generating an email without the url opening externally

Question asked by glalla_uwi2017 on Sep 13, 2018
Latest reply on Sep 13, 2018 by ESoekianto-esristaff

I want to send an email but I do not want the url page to open up externally. How can this code be modified to do that? Thank you.

var urlInfo = AppFramework.urlInfo("mailto:***"), //Instantiates UrlInfo with an email address
                deviceDetails = [ //Collects information about both the device and app
                    "%1: %2 (%3)".arg("Device OS").arg(Qt.platform.os).arg(AppFramework.osVersion),
                    "%1: %2".arg("Device Locale").arg(Qt.locale().name),
                    "%1: %2".arg("App Version").arg(,
                    "%1: %2".arg("AppStudio Version").arg(AppFramework.version),
            urlInfo.queryParameters = { //Uses queryParameters property to populate email subject and body
                "subject": "%1 %2".arg("Feedback for").arg(,
                "body": "\n\n%1".arg(deviceDetails.join("\n"))
            Qt.openUrlExternally(urlInfo.url); //Uses Qt framework to open constructed UrlInfo