Question send sms using gmail?

Hi,

i dont have any codes. can someone share you're codes.

No and Yes.

No, I am not going to share any code with you when you have not demonstrated trying anything for yourself.

Yes, I use gmail / googlemail all the time in VB.NET, so I will happily help you fix any coding issues you may get when using gmail.

I suggest that you search the internet for examples of sending email with .NET and then, by all means, let us know where you get stuck and I am sure we will be able to help you further.

Cheers,

Ian
 
the real problem is i dont know what is the carrier of globe telecoms(philippines) ive searched already but nothing found. why do i need carrier? if i use gmail to send message using a browser (not a vb application) it doesnt ask me about carrier?
 
using the codes below
it gives me an error
Unable to connect to the remote server

btw the @globe.com.ph below im not sure about it. how to know if i inputed a wrong carrier because i dont know about it

Imports System.Net.Mail
Dim smtpServer As New SmtpClient()
Dim mail As New MailMessage
smtpServer.Credentials = New Net.NetworkCredential(TextBox1.Text & "@gmail.com", TextBox2.Text)
smtpServer.Port = 587
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
mail.From = New MailAddress(TextBox1.Text & "@gmail.com")
If RadioButton1.Checked = True Then
mail.To.Add("+63" & TextBox3.Text & "@globe.com.ph")
ElseIf RadioButton2.Checked = True Then
mail.To.Add(TextBox3.Text)
End If
mail.Subject = TextBox4.Text
mail.Body = TextBox5.Text()
smtpServer.Send(mail)
MsgBox("mail is sent", MsgBoxStyle.OkOnly, "Report")
 
Back
Top