This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-04-29 08:14:21

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

I Need Urgent VB Help!

OK, so, in Visual Basic, I was programming an e-mail program...

Here's the code. It can't seem to send it. I get an error every time I click send.

Code:

Imports System.Net.Mail
Public Class MailSender
    Dim mail As New MailMessage
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim stmpclient As New SmtpClient
        stmpclient.Credentials = New Net.NetworkCredential(My.Settings.Username, My.Settings.Password)
        stmpclient.Port = 587
        stmpclient.Host = "stmp.gmail.com"
        stmpclient.EnableSsl = True
        mail = New MailMessage
        mail.From = New MailAddress(TextBox2.Text)
        mail.To.Add(New MailAddress(TextBox1.Text))
        mail.Subject = TextBox3.Text
        mail.Body = TextBox4.Text
        stmpclient.Send(mail)
    End Sub
End Class

http://i46.tinypic.com/dw7zft.png

Offline

 

#2 2010-04-29 08:19:46

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: I Need Urgent VB Help!

Bump! (Sorry about the 6 min. bump!)


http://i46.tinypic.com/dw7zft.png

Offline

 

#3 2010-04-29 08:56:11

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: I Need Urgent VB Help!

Visual Basic looks a lot harder then I thought...

Is it that Microsoft one?

Offline

 

#4 2010-04-29 14:07:30

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: I Need Urgent VB Help!

Can you post the error it gives you? Maybe I can help... I can program VB.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#5 2010-04-29 14:17:25

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: I Need Urgent VB Help!

BWOG wrote:

Visual Basic looks a lot harder then I thought...

Is it that Microsoft one?

Its not really that hard once you know what to do.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#6 2010-04-29 17:20:24

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: I Need Urgent VB Help!

markyparky56 wrote:

BWOG wrote:

Visual Basic looks a lot harder then I thought...

Is it that Microsoft one?

Its not really that hard once you know what to do.

it's supposed to be basic...


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#7 2010-04-30 03:37:59

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: I Need Urgent VB Help!

I've tried an email sender. If I could get mine to work I would know how to help you.


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#8 2010-04-30 07:42:30

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: I Need Urgent VB Help!

It's OK. I figured it out.


http://i46.tinypic.com/dw7zft.png

Offline

 

Board footer