hi everyone , how i could do everything i write in edittext send it by mail , i test with this but dont work
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim SMTP As SMTP
End Sub
Sub Globals
'These variables can only be accessed from this module.
Dim StatusSend1 As String
Dim SMTP As SMTP
StatusSend1=""
Private EditText1 As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("3")
If FirstTime Then
SMTP.Initialize("smtp.gmail.com", 465, "[email protected]", "1234", "SMTP")
SMTP.UseSSL = True 'Esta linea la ponemos ya que Gmail requiere SSL
SMTP.To.Add("[email protected]")
SMTP.Subject = ("subject")
SMTP.Body = (EditText1.text)
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub EnviarEMail1
End Sub
Sub SMTP_MessageSent(Success As Boolean)
If Success=True Then StatusSend1="SI enviado"
If Success=False Then StatusSend1="NO Enviado"
Log(StatusSend1)
End Sub
Sub Button1_Click
SMTP.Send
End Sub