Email sending through vb.net application.
-
Hi Can anybody help me out for , is it possible to send an email through an vb.net desktop application. Is there any way .
yes you can !! Imports System.Web.Mail in your code then use the MailMessage Class Tamimi - Code
-
yes you can !! Imports System.Web.Mail in your code then use the MailMessage Class Tamimi - Code
Tamimi you code is use for web application not in window application. ................
-
Tamimi you code is use for web application not in window application. ................
sorry :doh: i know only this way Tamimi - Code
-
Tamimi you code is use for web application not in window application. ................
The System.Web.xxxx namespace can be used in either type of application. Dave Kreskowiak Microsoft MVP - Visual Basic
-
Tamimi you code is use for web application not in window application. ................
-
Actually, I believe that code will work in a WinForms application as well. I suggest downloading the '101 Visual Basic and C# Code Samples' and taking a look at the one titled 'How-To Send Mail'. Scott
Imports System.Web.Mail Private Sub e_mail() 'Create an instance of the MailMessage class Dim mm As New MailMessage mm.To = "bill@fun.com" End Select mm.From = "jhoga@salisburync.gov" mm.Priority = MailPriority.High mm.Subject = "Change made to receipt number: " & strSN mm.Body = "Receipt Number: " SmtpMail.SmtpServer = "mailserver" SmtpMail.Send(mm) End Sub * note "mailserver' is name of a mailserver in my network
-
Imports System.Web.Mail Private Sub e_mail() 'Create an instance of the MailMessage class Dim mm As New MailMessage mm.To = "bill@fun.com" End Select mm.From = "jhoga@salisburync.gov" mm.Priority = MailPriority.High mm.Subject = "Change made to receipt number: " & strSN mm.Body = "Receipt Number: " SmtpMail.SmtpServer = "mailserver" SmtpMail.Send(mm) End Sub * note "mailserver' is name of a mailserver in my network
-
Thanks but i wanted to know that is it possible to send mail through a windowsapplication written in vb.net. If possible please suggest.
Do you want to know how to send emails via vb.net 2003 or 2005? Steve Jowett