Tech Lounge > Programming

Email sender :D (-VB-)

(1/2) > >>

» Magic «:
Make 2 TextBoxes
Make 1 Button
Then Add 2 Labels

--------------------------------------------------------------------

( Double Click Form What Ever Form Then Type This )



--- Code: ---Inports System.Net.Mail

--- End code ---

--------------------------------------------------------------------

( Double Click Button And Add This )



--- Code: ---Dim smtpServer As New SmtpClient
Dim mail As New MailMessage()
smtpServer.Port = 587
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
mail = New MailMessage()
mail.From = New MailAddress("Your Gmail Here")
mail.To.Add("Your Gmail Here")
mail.Subject = TextBox1.Text
mail.Body = TextBox2.Text
smtpServer.Send(mail)
MsgBox("Message Sent", "Sent")

--- End code ---

Have fun with this ya nubs :D

-Magic

xxMingebaggerxx:
Make a tutorial section or post there..

coolzeldad:

--- Quote from: Mingebagger on February 08, 2010, 11:45:28 AM ---Make a tutorial section or post there..

--- End quote ---

I don't see anything wrong with where it has been posted?

xxMingebaggerxx:
I wish for a tut section.. then all of the tutorials from over the forumz will be moved thar

Krasher:

--- Quote from: Mingebagger on February 09, 2010, 08:43:54 AM ---I wish for a tut section.. then all of the tutorials from over the forumz will be moved thar

--- End quote ---
I haz agreeance with joo

I may make many many tuts on many many things

Navigation

[0] Message Index

[#] Next page

Go to full version