Support Forums
[Visual Basic] Send An Email [Tutorial] - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: [Visual Basic] Send An Email [Tutorial] (/showthread.php?tid=19877)



[Visual Basic] Send An Email [Tutorial] - Coding Support - 06-23-2011

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.




RE: [Visual Basic] Send An Email [Tutorial] - Resistance - 06-23-2011

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!


RE: [Visual Basic] Send An Email [Tutorial] - Coding Support - 06-23-2011

(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.




RE: [Visual Basic] Send An Email [Tutorial] - Bigandrewgold - 06-24-2011

good tutorial, hope it will help out some people who are new to vb. Keep it up


RE: [Visual Basic] Send An Email [Tutorial] - Slurms Makenzi - 06-24-2011

Good job, you should figure out how to use multiple websites.


RE: [Visual Basic] Send An Email [Tutorial] - Exploitations - 06-24-2011

(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.


RE: [Visual Basic] Send An Email [Tutorial] - Qua - 06-24-2011

I already knew this, but it's still an interesting tutorial.

Thanks.


RE: [Visual Basic] Send An Email [Tutorial] - Blic - 06-25-2011

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.


RE: [Visual Basic] Send An Email [Tutorial] - Bigandrewgold - 06-27-2011

(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



RE: [Visual Basic] Send An Email [Tutorial] - Black Ghost - 06-29-2011

This is what people use to make phishing programs.

Thanks for this though!