|
-
Jun 27th, 2002, 08:49 AM
#1
Code:
Dim mailMessage As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage()
mailMessage.From = "[email protected]"
mailMessage.To = "[email protected]"
mailMessage.Subject = "Email Subject"
mailMessage.BodyFormat = System.Web.Mail.MailFormat.Text
System.Web.Mail.SmtpMail.SmtpServer = "localhost"
System.Web.Mail.SmtpMail.Send(mailMessage)
wether your app is ASP .NET or not is a moot point.
-
Jun 27th, 2002, 08:53 AM
#2
Junior Member
Re:
Cander,
The code you pasted comes up with errors on using the System.Web.Mail library. Since my project is not an ASP.NET project... the developer does not allow the use of this library. Is there a way to work around this?
-
Jun 27th, 2002, 09:04 AM
#3
Again, it does not matter. If you are having problems, it is because you probably dont have the cdonts object which is an older component that system.web.mail is just a wrapper for.
-
Jun 27th, 2002, 09:07 AM
#4
Junior Member
Re:
Cander,
I am new to VB... how do i check if the CDONTS object is available or not installed?
Sorry to keep bugging ya.
-
Jun 27th, 2002, 09:37 AM
#5
Junior Member
I figured out the prob, i need to add the web.dll to my references under the solution explorer.
-
Jun 28th, 2002, 12:57 AM
#6
Lively Member
but i guess we still need smtp server installed for this code. i am looking for one simple email program that uses outlook express to send emails
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|