Hello
I've a second problem for sending email.
Net Version 1.37
VB4Android V 3
Programme :
Sub Process_Globals
Dim SMTP As SMTP
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
SMTP.Initialize("smtp.gmail.com", 465, "[email protected]", "password", "SMTP")
SMTP.UseSSL = True
End If
SMTP.To.Add("[email protected]")
SMTP.Subject = "This is the subject"
SMTP.Body = "This is the message body."
SMTP.Send
End Sub
Sub SMTP_MessageSent(Success As Boolean)
Log(Success)
If Success Then
ToastMessageShow("Message sent successfully", True)
Else
ToastMessageShow("Error sending message", True)
Log(LastException.Message)
End If
End Sub
Erreur :
java.net.UnknownHostException: Unable to resolve host "smtp.gmail.com": No address associated with hostname
Thank you for your response and sorry for my English
Regards
I've a second problem for sending email.
Net Version 1.37
VB4Android V 3
Programme :
Sub Process_Globals
Dim SMTP As SMTP
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
SMTP.Initialize("smtp.gmail.com", 465, "[email protected]", "password", "SMTP")
SMTP.UseSSL = True
End If
SMTP.To.Add("[email protected]")
SMTP.Subject = "This is the subject"
SMTP.Body = "This is the message body."
SMTP.Send
End Sub
Sub SMTP_MessageSent(Success As Boolean)
Log(Success)
If Success Then
ToastMessageShow("Message sent successfully", True)
Else
ToastMessageShow("Error sending message", True)
Log(LastException.Message)
End If
End Sub
Erreur :
java.net.UnknownHostException: Unable to resolve host "smtp.gmail.com": No address associated with hostname
Thank you for your response and sorry for my English
Regards