Thread Rating:
  • 3 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Visual Basic] Send An Email [Tutorial]
#1
Sending an Email Tutorial


Step One | Design Your Program

-Design your program the way you want it, or you can make it look just like mine. It doesn't matter as long as you have all of the same things i have, such as the same amount of textboxes, ect...
-Here is a picture of my form, it was made quickly.

Step Two | Code Your Buttons

-First, double click on your 'Send Email' button. At the top, above 'Public Class Form1' type in this code...
Code:
Imports System.Net.Mail
-Next, its time to code the button we double clicked on. Just Copy and Paste this...
Code:
Dim MailMessage As New MailMessage()
        MailMessage.From = New MailAddress(TextBox1.Text)
        MailMessage.To.Add(TextBox3.Text)
        MailMessage.Subject = (TextBox4.Text)
        MailMessage.Body = TextBox5.Text
        Dim SMTPServer As New SmtpClient("smtp.gmail.com")
        SMTPServer.Port = 587
        SMTPServer.Credentials = New System.Net.NetworkCredential(TextBox1.Text, TextBox2.Text)
        SMTPServer.EnableSsl = True
        SMTPServer.Send(MailMessage)


Step Three | Debug and Test

-Debug it and test it, you can send an email to yourself if you want. This can be Easily modified to become an Email Bomber, but that is not the point of this tutorial.

[Image: iddyEs.png]
Reply
#2
We already have many of these basic type tutorials in SF. Creating more just depletes their importance, Dope. Though you do have an attractive tutorial set up, thanks for your contribution!
[Image: t5BWm.png]
Reply
#3
(06-23-2011, 10:26 PM)Resistance Wrote: We already have many of these basic type tutorials in SF. Creating more just depletes their importance, Dope. Though you do have an attractive tutorial set up, thanks for your contribution!
I am sure mine is one of the most easy to follow. Anyways, thanks for the thanks.. lol

your welcome.

[Image: iddyEs.png]
Reply
#4
good tutorial, hope it will help out some people who are new to vb. Keep it up
Reply
#5
Good job, you should figure out how to use multiple websites.
[Image: Untitled-1-4.jpg]
Reply
#6
(06-24-2011, 07:45 PM)Slurms Makenzi Wrote: Good job, you should figure out how to use multiple websites.

All you need to do is change the SMPT/Port to your email's.
Reply
#7
I already knew this, but it's still an interesting tutorial.

Thanks.
Reply
#8
This is very unsecure as the application can be decompiled and the raw code can be used. It is a lot better to create a PHP script with simple Base64 encryption that allows the application to Base64 hash the credentials and use a HTTP WebRequest POST script to post the encrypted Base64.

Anyways, thanks for posting.
Reply
#9
(06-25-2011, 12:41 AM)Blic Wrote: This is very unsecure as the application can be decompiled and the raw code can be used. It is a lot better to create a PHP script with simple Base64 encryption that allows the application to Base64 hash the credentials and use a HTTP WebRequest POST script to post the encrypted Base64.

Anyways, thanks for posting.
no one said that it was secureNonNon
Reply
#10
This is what people use to make phishing programs.

Thanks for this though!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How To make an advanced Operating System in Visual Basic 2010 ? Mohamed Samir 9 11,447 01-15-2013, 09:30 PM
Last Post: Resistance
  [TuToRiAl] How to make Offline (No Internet) Captcha (Human Confirmation) [TuToRiAl] Resistance 24 10,830 08-30-2012, 10:14 PM
Last Post: Resistance
  [Visual Basic] FTP Uploader [Tutorial] Coding Support 6 2,706 08-12-2012, 12:36 AM
Last Post: Kenneth
  Visual Studio Bill Nye The Science Guy 1 887 03-19-2012, 09:08 AM
Last Post: BreShiE
  Visual Basic Guide - Buttons Death Demise 9 4,649 03-09-2012, 06:46 PM
Last Post: BreShiE

Forum Jump:


Users browsing this thread: 1 Guest(s)