|
-
Mar 1st, 2003, 08:05 PM
#1
Thread Starter
Member
Sending an email though VB.NET
How can I send an email though VB.NET?
I'm looking at System.Web.Mail right now but I can't figure anything out.
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
-
Mar 1st, 2003, 08:54 PM
#2
well..i got this to work
VB Code:
Imports System.Web.Mail
.
.
.
Dim newmsg As New MailMessage
newmsg.Body = "testing123"
' i started to use the lines above..then found the line below...should work all on its own
System.Web.Mail.SmtpMail.Send(newmsg.From, newmsg.To, "subject", newmsg.Body)
but I think you can just use the system.web.mail.smtpmail.send
you might need to do something with:
system.Web.Mail.SmtpMail.SmtpServer
to set the mail server..i didnt need to but...
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Mar 2nd, 2003, 11:12 AM
#3
Thread Starter
Member
That's how I tried doing it at first but it just freezes.
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
-
Mar 2nd, 2003, 11:54 AM
#4
Sleep mode
Originally posted by JesusFreak
That's how I tried doing it at first but it just freezes.
Try to catch any expected error !! I was trying to send email from my machine but with no luck .I had to use free smtp server !
-
Mar 2nd, 2003, 12:49 PM
#5
are you behind a firewall? or anything odd?
Antivirus software?
strange...it worked fine for me.
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Mar 2nd, 2003, 03:28 PM
#6
Thread Starter
Member
I have Norton Internet Security(Includes Antivirus and Firewall).
Were can I get a free smpt sever?
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
-
Mar 3rd, 2003, 01:43 AM
#7
Sleep mode
-
Mar 3rd, 2003, 12:50 PM
#8
Frenzied Member
There is also a SMTP available inside Win2K. When you install IIS you can check on the SMTP option.
~Peter

-
Mar 3rd, 2003, 12:55 PM
#9
Sleep mode
I need one for XP ?? Is it dll or whatever it is ??
-
Mar 3rd, 2003, 04:32 PM
#10
Frenzied Member
You need to know where it is? It's packaged with the OS.
Open the Control Panel, Add/Remove Programs, Add/Remove Windows Components, Internet Information Services (IIS), Details button, and check on SMTP Service.
~Peter

-
Mar 4th, 2003, 01:23 PM
#11
Thread Starter
Member
Code:
Dim m As New SocketMail("what do I put here?", 25)
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
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
|