Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mail Sending help
#4
Maybe you could try this one:

[code2=vbnet]Dim MyMailMessage As New MailMessage()
MyMailMessage.From = New MailAddress("your email")
MyMailMessage.To.Add("to someone")
MyMailMessage.Subject = ("your subject")
MyMailMessage.Body = "your text"
Dim SMTPServer As New SmtpClient("for example for Hotmail: smtp.live.com")
SMTPServer.EnableSsl = False
SMTPServer.Port = 587
SMTPServer.Credentials = New System.Net.NetworkCredential("your email", "your email password")
SMTPServer.EnableSsl = True
SMTPServer.Send(MyMailMessage)[/code2]

Hope this works for you!


Messages In This Thread
Mail Sending help - by manishshrestha60 - 09-16-2012, 03:28 AM
Re: Mail Sending help - by Vinwarez - 09-16-2012, 04:17 AM
Re: Mail Sending help - by manishshrestha60 - 09-16-2012, 05:38 AM
Re: Mail Sending help - by brco900033 - 09-16-2012, 08:50 AM
Re: Mail Sending help - by manishshrestha60 - 09-17-2012, 11:44 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)