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
StatusSend1=""
Dim EditText1 As EditText
Dim EditText2 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 = ("hola")
SMTP.Body = EditText1.Text
SMTP.HtmlBody = True
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