|
-
Dec 16th, 2002, 03:37 PM
#1
Thread Starter
Hyperactive Member
Need to Send a Email?
Having problem Im trying "Imports System.Web.Mail" at the top and i get the ~~~~ blue line ??? is their something else i need to inport to or add a Ref to ? ?
-
Dec 16th, 2002, 04:51 PM
#2
Sleep mode
First , add a ref "web.dll" then everything should works fine.
VB Code:
Imports System.Web.Mail
Dim m As New System.Web.Mail.MailMessage()
With m
.To = "myself$my.house"
.Subject = "My SMTP Test"
.Body = "My New Message"
End With
SmtpMail.SmtpServer = "MyServerName"
SmtpMail.Send(m)
-
Dec 16th, 2002, 04:55 PM
#3
Thread Starter
Hyperactive Member
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
|