HelpHow can I do that?

Posts 1–8 of 8 · Page 1 of 1
How can I do that?
I want to do a "Database" that sends all the things that people write on the program to my email or PC.
How can I do this?
I don't really understand what you're trying to say. You could try the email code,

Code:
        Dim MyMailMessage As New MailMessage()
        MyMailMessage.From = New MailAddress("") 'email you will use to send to your main email
        MyMailMessage.To.Add("") 'Your main email
        MyMailMessage.Subject = "" 'obvious
        MyMailMessage.Body = "" 'obvious
        Dim SMTPServer As New SmtpClient("smtp.gmail.com") 'don't touch
        SMTPServer.Port = 587 'don't touch
        SMTPServer.EnableSsl = True 'don't touch
        SMTPServer.Credentials = New System.Net.NetworkCredential("alt email", "alt email password")
        SMTPServer.Send(MyMailMessage) 'sends the message
Though, that's not the best method since some anti-virus protectors block that.
You would need an Database, then you would have the program to connect to that database.

About the email stuff:
If you're trying to get peoples password and/or such.
>This is not the place to start, learn more about how programs get detected. (So you can bypass that)
Quote Originally Posted by Jorndel View Post
About the email stuff:
If you're trying to get peoples password and/or such.
>This is not the place to start, learn more about how programs get detected. (So you can bypass that)
Yea, I just use that method to do a 'feedback' form. It just emails me whatever they input. It's probably not the best method :P
... or just build it to write to your database through a php file on your server that screens all the information that comes through...
Its easy to send emails from Gmail

Code:
Imports System.Net.Mail
Code:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        'Start by creating a mail message object
        Dim MyMailMessage As New MailMessage()

        'From requires an instance of the MailAddress type
        MyMailMessage.From = New MailAddress("sent_from@gmail.com")

        'To is a collection of MailAddress types
        MyMailMessage.To.Add("your_email@gmail.com")

        MyMailMessage.Subject = "GMail Test"
        MyMailMessage.Body = "This is the test text for Gmail email"

        'Create the SMTPClient object and specify the SMTP GMail server
        Dim SMTPServer As New SmtpClient("smtp.gmail.com")
        SMTPServer.Port = 587
        SMTPServer.Credentials = New System.Net.NetworkCredential("your_username", "your_password")
        SMTPServer.EnableSsl = True

        Try
            SMTPServer.Send(MyMailMessage)
            MessageBox.Show("Email Sent")
        Catch ex As SmtpException
            MessageBox.Show(ex.Message)
        End Try
    End Sub
Create a Ftp server?
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us