Go Back   IhAv.NET > Discussions > Music
Google
 
Register GalleryBlogs FAQDonate Members List Calendar Search Today's Posts Mark Forums Read

Music Discuss everything related to Music / Videos here.


Tags: email, problem, program, script

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
VB 8 Script Problem Email Program?
Old 08-28-2008   #1 (permalink)
Junior Member
 
Sous's Avatar
 
Join Date: Aug 2008
Posts: 1
Level: 1 [♥ Bé-Yêu ♥]
Thanks: 0
Thanked 0 Times in 0 Posts
VB 8 Script Problem Email Program?

I have Visual Basic 2008 and I am trying to write a program that Emails me. I have 2 textboxes and a send button and YES all of the names are correct. Every time I debug it though, it gives me the "Not Successful" error message I wrote. What is wrong with it?
Here is the script:

Imports System.Net.Mail
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyMailMessage As New MailMessage()
Try
MyMailMessage.From = New MailAddress("example@gmail.com")
MyMailMessage.To.Add("basketmaster33@yahoo.ca")
MyMailMessage.Subject = TextBox1.Text
MyMailMessage.Body = TextBox2.Text
Dim SMTP As New SmtpClient("smtp.gmail.com")
SMTP.Port = 587
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential("example@Gmail.com", "example23")
SMTP.Send(MyMailMessage)
TextBox2.Text = ""
MsgBox("Email Was Succesful", MsgBoxStyle.Information, "Information")
Catch ex As Exception
MsgBox("Not Succesful")
End Try
End Sub

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

End Sub
End Class
Thanks. All help will be appreciated, and anyone who actually finds the problem gets Best Answer!
The ... after @Gm Is really :
ail.com",
So please don't try to tell me that that is the mistake!
Sous is offline   Submit to DiggWTF?Submit to RedditSubmit to FurlSubmit to Del.icio.usSubmit to JeqqSubmit to SpurlSubmit to FacebookStumble It
Reply With Quote Quick reply to this message
Reply


Quick Reply
Message:
Your Username: Click here to log in

Image Verification
Please enter the six letters or digits that appear in the image opposite.

Smilies
Options

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which keyboard&mouse macro program that allows me to run script in... dragonsvn Software & Hardware 1 07-21-2008 12:10 PM
How to deal with this Java Script Internet Explorer problem? venomous smile Internet 0 06-30-2008 03:50 AM
How to deal with this Java Script Internet Explorer problem? venomous smile Internet 1 06-27-2008 07:23 PM
Is there a free program/script on the internet that can periodically checks snakeeyes Internet 0 06-17-2008 07:22 AM
internet explorer script error prevents read email attachments? Fluffy Internet 0 06-11-2008 04:42 AM


All times are GMT -4. The time now is 12:01 AM.
Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC5
Page generated in 0.33135605 seconds (100.00% PHP - 0% MySQL) with 21 queries
 
Resources - Link Exchange - Resources2
Phones, Sex & Relationships, Accessories, Sports / Cars videos, Gadgets, Random Interesting Topics, Newsgroups, HD DVD, T-Mobile, Announements, Trivia & Polls, General Phones, Satellite, Video Games News, Reviews, Rant-Whine-Complain-Vent, AT&T, Internet, Girl Videos, Books & Comics, American Muscle, Religion, DIVX, Telus, Power Sports & Motorsports, Style Lab, Predictions and Prophecies, Gossip and Rumors, Rogers, The Closet, Sony Ericsson, Ringtones, News, Tv spots and Commercials., Eastern Imports, Lounge, Bluetooth, XVID, Nokia, Auto News, Games, Introductions, Music Videos, Celebrity Talk, The Cage, Carriers, TechnoZone, Software & Hardware, Home and Car Audio, Pda/Smartphone, Fitness & Nutrition, Beyond Reality, NZB, Video, Mobile Accessories, Home and Dining, Sports News, Humor & Jokes, Backberry, Samsung, IPhone, Verizon, Pets, Science News, Movies & TV, Writing and Literature, Cooking and Recipes, Health, Trucks and SUV, Really Weird Videos, Bell, File Sharing, European Imports, RSS News, Politics, MarketPlace, Motorola, Gaming, Travel and Vacation, The Great Outdoors, Celebrity News, General Videos, LG, Blu Ray, BitTorrent, Sprint, Sports Club, Cars & Transportation, DVD, Music, Show Off, Health and Fitness