How To send SMS Using VB.net programme

Posted by Aspbimal under VB.NET on 5/1/2012 | Points: 10 | Views : 7241 | Status : [Member] | Replies : 2
Hi,
code to send SMS on Cell Phone Using VB.net




Responses

Posted by: Girinarra on: 5/1/2012 [Member] Starter | Points: 25

Up
0
Down
Attaching the C# code .Convert into VB and use it.

 Download source file

Aspbimal, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lalji_Mer on: 5/1/2012 [Member] Bronze | Points: 25

Up
0
Down
Try below code sample

[code]

Imports System.Web.Mail
.
.
.
Dim toPhoneNumber As String = "DestinationPhoneNumber";
Dim login As String = "YoureIPIPIUsername"
Dim password As String = "YourPassword"
Dim compression As String = "Compression Option goes here - find out more"
Dim body As String = "Your Message"
Dim mail As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage

mail.To = toPhoneNumber + "@sms.ipipi.com"
mail.From = login + "@ipipi.com"
mail.Subject = compression
mail.Body = body
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1")
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", login)
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", password)


System.Web.Mail.SmtpMail.SmtpServer = "ipipi.com";
System.Web.Mail.SmtpMail.Send(mail)

[/code]

Read more here
http://www.codeproject.com/Articles/19023/Sending-SMS-using-NET


LP MER

Aspbimal, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response