Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPrevent click on datagrid with setting Enable = false Pin
nzmike22-Feb-06 14:11
nzmike22-Feb-06 14:11 
AnswerRe: Prevent click on datagrid with setting Enable = false Pin
Dean_SF24-Feb-06 9:43
Dean_SF24-Feb-06 9:43 
GeneralRe: Prevent click on datagrid with setting Enable = false Pin
nzmike26-Feb-06 10:34
nzmike26-Feb-06 10:34 
Question[Message Deleted] Pin
Tyrone_whitey22-Feb-06 12:26
Tyrone_whitey22-Feb-06 12:26 
AnswerRe: Help with Splash Screens Pin
Joshua Quick22-Feb-06 12:42
Joshua Quick22-Feb-06 12:42 
QuestionEmail will not send my visual studio 2003 project Pin
kenn_rosie22-Feb-06 11:54
kenn_rosie22-Feb-06 11:54 
AnswerRe: Email will not send my visual studio 2003 project Pin
japel22-Feb-06 12:45
japel22-Feb-06 12:45 
JokeRe: Email will not send my visual studio 2003 project TESTED Pin
japel22-Feb-06 13:52
japel22-Feb-06 13:52 
OK Tested the email portion of your code...

Imports System.Web.mail

<br />
    Dim newMail As New MailMessage<br />
    Dim SmtpSvr As SmtpMail<br />
<br />
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
    End Sub<br />
    Private Sub mySendMail()<br />
<br />
        SmtpMail.SmtpServer = "127.0.0.1"<br />
        newMail.To = "kne@canon.com.au" '' this is TO Address<br />
        newMail.From = "japel-xp@localhost" '' this is the From Address<br />
        newMail.Subject = "Change in Product Rate"<br />
        newMail.Body = "Dear Ken"<br />
        SmtpMail.Send(newMail)<br />
<br />
    End Sub<br />
<br />
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        mySendMail()<br />
    End Sub<br />


Added the (Dim SmtpSvr As SmtpMail) and the rest worked. Please let me know how you go...

Also catch the email Exception by putting your code in a try/catch the below will tell you the return smtp server error e.g. 550 No Realy...

<br />
        Catch ex As Exception<br />
            MessageBox.Show(ex.GetBaseException.Message)<br />
        End Try<br />



When people make you see red, be thankful your not colour blind.
Questionaccessing to crystal report parts ... Pin
microuser_200022-Feb-06 11:18
microuser_200022-Feb-06 11:18 
QuestionNotify Parent Form of close Pin
K. Shaffer22-Feb-06 9:35
K. Shaffer22-Feb-06 9:35 
AnswerRe: Notify Parent Form of close Pin
Joshua Quick22-Feb-06 12:30
Joshua Quick22-Feb-06 12:30 
GeneralRe: Notify Parent Form of close Pin
K. Shaffer23-Feb-06 4:31
K. Shaffer23-Feb-06 4:31 
QuestionToolstrip/Menustrip Pin
kenexcelon22-Feb-06 9:27
kenexcelon22-Feb-06 9:27 
AnswerRe: Toolstrip/Menustrip Pin
RichardBerry23-Feb-06 0:12
RichardBerry23-Feb-06 0:12 
QuestionWindows Application type or Console Application type? Pin
Slow Learner22-Feb-06 9:13
Slow Learner22-Feb-06 9:13 
AnswerRe: Windows Application type or Console Application type? Pin
Joshua Quick22-Feb-06 12:47
Joshua Quick22-Feb-06 12:47 
QuestionFilter data in DataGridView Pin
Brian Holdridge22-Feb-06 9:00
Brian Holdridge22-Feb-06 9:00 
AnswerRe: Filter data in DataGridView Pin
RichardBerry22-Feb-06 22:38
RichardBerry22-Feb-06 22:38 
GeneralRe: Filter data in DataGridView Pin
Brian Holdridge24-Feb-06 2:34
Brian Holdridge24-Feb-06 2:34 
QuestionPassing object from one form to another Pin
G7236022-Feb-06 8:52
G7236022-Feb-06 8:52 
AnswerRe: Passing object from one form to another Pin
Joshua Quick22-Feb-06 13:09
Joshua Quick22-Feb-06 13:09 
QuestionDatagrids and the Date....... Pin
daviiie22-Feb-06 6:34
daviiie22-Feb-06 6:34 
AnswerRe: Datagrids and the Date....... Pin
RichardBerry22-Feb-06 20:59
RichardBerry22-Feb-06 20:59 
QuestionPassing Arrays of structures from VB.NET to unmanaged C++ Pin
CPop22-Feb-06 6:17
CPop22-Feb-06 6:17 
QuestionHow to use an HttpWebClientProtocol class Pin
Hohnerman2022-Feb-06 6:03
Hohnerman2022-Feb-06 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.