ios - How to add a attachment in outlook programatically swift 3 -


i have opened outlook app , send file in it. able open outlook , set to,subject , body not sure how attach file in document directory file @ path

  var paths = nssearchpathfordirectoriesindomains(.documentdirectory, .userdomainmask, true)     let documentsdirectory = paths[0]     let filename = "supportdata.log"     let logfilepath = (documentsdirectory nsstring).appendingpathcomponent(filename)  let scheme : string = "ms-outlook://compose?tosupport@tech.com&subject=support data &body=please find attached file"       if let url = url(string: scheme) {         uiapplication.shared.open(url, options: [:], completionhandler: {             (success) in             if (success)             {                 print("open \(scheme): \(success)")             }                              })     } 


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -