I am using B4J to sent an email to a phone, AT&T has an option which allows a format to send emails to a text number. the format is xxxxxxxxxx@txt.att.net(SMS). In using B4J smtp.add("xxxxxxxxxx@txt.att.net(SMS") gives the error "unknown member" Is there a format that works?
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
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("7023743193@txt.att.net(SMS)")
smtp.Subject = "Test"
smtp.Send
StartMessageLoop
End Sub
Sub SMTp_MessageSent(Success As Boolean)
Log(Success)
Log(LastException)
End Sub