[Help] Dj Application[Mailing Error]

A Place For Programmers Of All Levels To Discuss Programming & Web Building.

Moderator: Community Moderator

Locked
User avatar
MASTALOL
First Adjutant
First Adjutant
Posts: 303
Joined: 16 Jun 2010, 17:59
Location: SC
Has thanked: 2 times
Been thanked: 1 time
Contact:

[Help] Dj Application[Mailing Error]

Post by MASTALOL »

I Run a Radio Station and I Wanted To Program a Program That Users Can Use To Apply To Be a DJ
and I Keep Haveing This Problom:
Every Time I Try To Send The Application Through The Program, It Says:

Code: Select all

An unhandled exception of type 'System.Net.Mail.SmtpException' occurred in System.dll

Additional information: Failure sending mail.
:eek:

Using: Microsoft Visual Studio 2010 Ultimate

What i have:

Code: Select all

Public Class Form1

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        If TextBox10.Text = 2 Then
            MsgBox("Correct Answer!", MsgBoxStyle.Exclamation, "Correct")
            Button1.Enabled = True
        Else
            MsgBox("Answer is Incorrect please try again!", MsgBoxStyle.Critical, "Error")
        End If
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Mail As New MailMessage
        Mail.Subject = "DJ Application"
        Mail.To.Add("RServersAdm[MENTION=95245]LiVe[/MENTION].com")
        Mail.From = New MailAddress(TextBox2.Text)
        Mail.Body = "---------------------------" +
            "Start Application" +
            "---------------------------" +
            "Name: " + TextBox1.Text +
            "Email:" + TextBox2.Text +
            "Age:" + TextBox3.Text +
            "Gender" + TextBox11.Text +
            "State:" + TextBox4.Text +
            "Country:" + TextBox5.Text +
            "---------------------------" +
            "Music" +
            "---------------------------" +
            "Good Music Selection?" + TextBox6.Text +
            "What's Your Favorite Genre?" + TextBox12.Text +
            "---------------------------" +
            "Broadcasters" +
            "---------------------------" +
            "Virtual DJ?: " + TextBox7.Text +
            "Sam Broadcaster?: " + TextBox8.Text +
            "---------------------------" +
            "Remote Support" +
            "---------------------------" +
            "Team Viewer?: " + TextBox9.Text +
            "---------------------------" +
            "End Application" +
            "---------------------------"

        Dim SMTP As New SmtpClient("pop3.live.com")
        SMTP.EnableSsl = True
        SMTP.Credentials = New System.Net.NetworkCredential("RServersADM[MENTION=95245]LiVe[/MENTION].com", "*MY PASSWORD*")
        SMTP.Port = "587"
        SMTP.Send(Mail)
        MsgBox("Thank You For Submiting Your Application!", MsgBoxStyle.Exclamation, "Correct")
    End Sub
Could Someone TV Me and Help?

My ID is:
353 376 943

PM Me For Pass

Thanks
:techie-computer:

-- Mon Feb 14, 2011 6:11 pm --

[size=]/req close Fixed[/size]
We All Can't Save The World, Someone Needs To Sit On The Curb And Cheer The Hero's On

If you find any links Dead in my posts, Please take a moment to PM me, I will fix them!

Check out My Upload List!

Dropbox - Simplify your life Join Now!
Image
Voted The BEST Cloud Storage!
Locked

Return to “Programming/Web Building Chat & Support”