Vili
New Member
I am trying to make email sending work:
Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
smtpClient.Initialize("smtp.gmail.com", 587, "xxxxx@gmail.com", "xxxxxx", "SMTP")
smtpClient.StartTLSMode = True
smtpClient.To.Add("xxxxxx@gmail.com")
smtpClient.Subject ="Test subject"
smtpClient.Body ="TestingBody"
smtpClient.Send
End Sub
I display that MsgBox first, so the function works. I added the net library. No error message, email is still not sent. Can anyone help? I am a beginner in B4A.
Thank you, Vili
PS: Developing just for myself
Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
smtpClient.Initialize("smtp.gmail.com", 587, "xxxxx@gmail.com", "xxxxxx", "SMTP")
smtpClient.StartTLSMode = True
smtpClient.To.Add("xxxxxx@gmail.com")
smtpClient.Subject ="Test subject"
smtpClient.Body ="TestingBody"
smtpClient.Send
End Sub
I display that MsgBox first, so the function works. I added the net library. No error message, email is still not sent. Can anyone help? I am a beginner in B4A.
Thank you, Vili
PS: Developing just for myself