B4J Question phone text

jerryjukem

Member
Licensed User
Longtime User
smtp error.PNG
 
Upvote 0

jerryjukem

Member
Licensed User
Longtime User
Yes, the regular email address format works. The reason for the text is that it delivers instantly, which is what i want. I was using Basic4PPC for this notification, but apparently windows10 obsoleted that function of smtp so i switched to B4J
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I was able to send a message successfully with this code:
B4X:
Sub AppStart (Args() As String)
   Private smtp As SMTP
   smtp.Initialize("xxx",25,"xxx","xxx", "smtp")
   smtp.To.Add("[email protected](SMS)")
   smtp.Subject = "Test"
   smtp.Send
   StartMessageLoop
End Sub

Sub SMTp_MessageSent(Success As Boolean)
   Log(Success)
   Log(LastException)
End Sub
 
Upvote 0
Top