Sending to email help-VBForums
Results 1 to 4 of 4

Thread: Sending to email help

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    2

    Sending to email help

    Hello guys , i am a new user here

    I am trying to do something that send the text witch has been typed in the text box to my email .

    Here i give you the code so i hope you can help me .

    PHP Code:
    Public Class Form1
        
    Private Sub Form1_Load(ByVal sender As System.ObjectByVal e As System.EventArgsHandles MyBase.Load

        End Sub

        
    Private Sub Label1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Label1.Click

        End Sub

        
    Private Sub Label2_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Label2.Click

        End Sub

        
    Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
            Timer1
    .start()
        
    End Sub

        
    Private Sub Timer1_Tick(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Timer1.Tick
            ProgressBar1
    .Increment(4)
            If 
    ProgressBar1.Value 100 Then
                Label6
    .Text "Done . Please wait 1 hour to get your shells"
            
    End If
            
    Label5.Text ProgressBar1.Value & (" %")
        
    End Sub

        
    Private Sub Label6_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Label6.Click

        End Sub

        
    Private Sub Label5_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Label5.Click

        End Sub

        
    Private Sub Label4_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Label4.Click

        End Sub

        
    Private Sub UsernameBox1_TextChanged(ByVal sender As System.ObjectByVal e As System.EventArgsHandles TextBox1.TextChanged

        End Sub

        
    Private Sub PasswordBox2_TextChanged(ByVal sender As System.ObjectByVal e As System.EventArgsHandles TextBox2.TextChanged

        End Sub

        
    Private Sub Label7_Click(ByVal sender As System.ObjectByVal e As System.EventArgs)

        
    End Sub
    End 
    Class 
    IDK where to start over and make it to be sent to my email . Help please ....

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    86,092

    Re: Sending to email help

    You would use the System.Net.Mail.MailMessage class to send an email and use the Text of the TextBox as the Body. Search online and you'll find plenty of examples. Just make sure that you don't use the obsolete System.Web.Mail.MailMessage class.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2012
    Posts
    2

    Re: Sending to email help

    As i saw in the internet it was really hard , can someone put it in the code please because i really don't understand it

  4. #4
    Web developer Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    11,439

    Re: Sending to email help

    Not sure if this would be of any help (see first post)?
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    Please consider giving me some rep points if I help you a lot.
    DON'T BUMP YOUR POSTS!!! Links to my code examples can now be found on my website: My websites
    Please rate my post if you find it helpful!
    Technology is a dangerous thing in the hands of an idiot! I am that idiot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.