Regrettably the mail composer does not work here: I'm using an iPad (iOS 14.4.2 7) and the mail app is installed and configured.
But the composer window is not shown from my code below, mailc_complete is never invoked.
Is there need for any #plist entries ?
TX, Oliver
But the composer window is not shown from my code below, mailc_complete is never invoked.
Is there need for any #plist entries ?
B4X:
mailc.Initialize("mailc")
Log ("Can send:"&mailc.CanSendMail) ' Shows true
Log("Initialized:"&mailc.IsInitialized) ' Shows true
Dim body As String ="Test"
mailc.SetToRecipients(Array("[email protected]"))
mailc.SetSubject("Test")
mailc.SetBody(body, False) 'Text
mailc.Show(B4XPages.GetNativeParent(Me))
Sub mailc_Complete (Result As Int)
If Result = mailc.RESULT_SENT Then
Log("ok")
End If
End Sub
TX, Oliver