Hi,
I'm creating EMails in a service. Sometimes after SMTP.Send the SMTP_MessageSent sub is not triggered. Code like that:
Most times it succeeds normally. In some cases neither "message sent" nor an errror message is shown.
Are there known issues? Has anybody an idea why the SMTP1_MessageSent is never called?
I'm creating EMails in a service. Sometimes after SMTP.Send the SMTP_MessageSent sub is not triggered. Code like that:
B4X:
' Service
Sub Process_Globals
dim SMTP1 as SMTP
End Sub
Sub sendEmail
SMTP1.Initialize(..., "SMTP1")
[... Setup SMTP1 ...]
SMTP1.Send
ToastMessageShow("sending message...")
End Sub
Sub SMTP1_MessageSent(Success As Boolean)
If Success Then
ToastMessageShow("message sent.")
Else
ToastMessageShow(LastException.Message)
End If
End Sub
Most times it succeeds normally. In some cases neither "message sent" nor an errror message is shown.
Are there known issues? Has anybody an idea why the SMTP1_MessageSent is never called?