Receiving data from my app on another machine

  • Thread starter Thread starter AbanoubZak
  • Start date Start date
A

AbanoubZak

Guest
I need to receive data from each device that use my app as i offer it as trail,

the problem that i can't deploy a server with static IP aka domain so my app can find it, so the 2nd option is to send this data throw Email, i tried many time with Gmail but Failed for security reason knowing that i have enabled low security apps to log to the Email used.

the error i get is "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required"

the code i use is as following


Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New Net.NetworkCredential("Email", "password")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"

e_mail = New MailMessage()
e_mail.From = New MailAddress(txtFrom.Text)
e_mail.To.Add(txtTo.Text)
e_mail.Subject = "Email Sending"
e_mail.IsBodyHtml = False
e_mail.Body = txtMessage.Text
Smtp_Server.Send(e_mail)
MsgBox("Mail Sent")

Catch error_t As Exception
MsgBox(error_t.ToString)
End Try
if this issue related trusted certificate how can i obtain one?

Continue reading...
 

Similar threads

D
Replies
0
Views
121
Developer Dude
D
Back
Top