- S.O: Ubuntu 11.10 k3.0.
- Gambas: gambas 2.22.
- Escritorio: Unity/Gnome3/Kde
la cuestion esta que se me ocurrio anexar en un programa el envio de bugs, habia pensado hacerlo mediante mail, utilizando un post que vi:
http://foro.gambas-es.org/viewtopic.php?f=5&t=625&highlight=mail
pero el problema esta que ya la aplicacion pide muchas dependencia y usar mas ya no me conviene, tambien se me habia ocurrido usar una bd online pero me seria mejor por mail, algun metodo sin usar dependencias?
use este code pero me dio un error 530 que quiere decir que pide autoidentificacion o algo asi:
PUBLIC SUB Button1_Click()
DIM Correo AS SmtpClient
DIM remitente AS String
DIM Asunto AS String
DIM Mensaje AS String
Asunto = "Reporte de Bugs"
'Envío del mensaje
Correo = NEW SmtpClient
Correo.To.Add(TextBox1.Text)
Correo.From = "mimail@gmail.com"
Correo.Subject = Asunto
Correo.Host = "smtp.gmail.com"
Correo.Port = "587"
Correo.Add(Mensaje, "text/html")
Correo.Send()
message.Info("Bug Reportado.")
TextBox1.Clear()
TextArea1.Clear()
'TextBox1.SetFocus
END
DIM Correo AS SmtpClient
DIM remitente AS String
DIM Asunto AS String
DIM Mensaje AS String
Asunto = "Reporte de Bugs"
'Envío del mensaje
Correo = NEW SmtpClient
Correo.To.Add(TextBox1.Text)
Correo.From = "mimail@gmail.com"
Correo.Subject = Asunto
Correo.Host = "smtp.gmail.com"
Correo.Port = "587"
Correo.Add(Mensaje, "text/html")
Correo.Send()
message.Info("Bug Reportado.")
TextBox1.Clear()
TextArea1.Clear()
'TextBox1.SetFocus
END