contact form
-
im making a contact form in that im maling all information to the provider. but wat method i use im not getting plz help
-
im making a contact form in that im maling all information to the provider. but wat method i use im not getting plz help
May be u can use this : Imports System.Net.Mail
-
May be u can use this : Imports System.Net.Mail
i did use that but when i create my own method named as SENDMAIL it give error of namespace. should i give u code
-
i did use that but when i create my own method named as SENDMAIL it give error of namespace. should i give u code
Are you sure the assembly is referenced in your project?
only two letters away from being an asset
-
i did use that but when i create my own method named as SENDMAIL it give error of namespace. should i give u code
ya u can..
-
ya u can..
you must import "Imports.System.Web.Mail" Then use this code:
Dim objEmail As New MailMessage objEmail.To = "To Email" objEmail.From = "Your Email" objEmail.Subject = "Your Subject" objEmail.Body = "Hello" objEmail.Priority = MailPriority.High objEmail.BodyFormat = MailFormat.Text SmtpMail.SmtpServer = "Your SMTP Server" Try SmtpMail.Send(objEmail) Catch exc As Exception Throw exc End Try
This will help you!!Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.