Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[ Visual Basic 2008] Simple But Cool Features To Include In Your Program {Updated Often]

Add this one :P

"Send Email"

Code
Dim mail As New MailMessage()
            Dim SmtpServer As New SmtpClient
            SmtpServer.Credentials = New Net.NetworkCredential("[email protected]", "password")
            SmtpServer.Port = 587
            SmtpServer.Host = "smtp.gmail.com"
            SmtpServer.EnableSsl = True
            SmtpServer.EnableSsl = True
            mail.To.Add("reciever@anything")
            mail.From = New MailAddress("[email protected]")
            mail.Subject = (TextBox1.Text)
            mail.Body = (TextBox2.Text)
            SmtpServer.Send(mail)
very informative for a beginner like me, thanks
(Jul 6, 2009 11:59 AM)Apple Wrote:  Add this one :P

"Send Email"

Code
Dim mail As New MailMessage()
            Dim SmtpServer As New SmtpClient
            SmtpServer.Credentials = New Net.NetworkCredential("[email protected]", "password")
            SmtpServer.Port = 587
            SmtpServer.Host = "smtp.gmail.com"
            SmtpServer.EnableSsl = True
            SmtpServer.EnableSsl = True
            mail.To.Add("reciever@anything")
            mail.From = New MailAddress("[email protected]")
            mail.Subject = (TextBox1.Text)
            mail.Body = (TextBox2.Text)
            SmtpServer.Send(mail)

I've already posted a Email source code,but thanks anyway.

(Jul 6, 2009 12:05 PM)Sud0x3 Wrote:  very informative for a beginner like me, thanks

No Problem 🙂
Nice i just saw this. now that i am actually making legit stuff this will be very helpful
(Jul 6, 2009 12:19 PM)WynD Wrote:  Nice i just saw this. now that i am actually making legit stuff this will be very helpful

Glad To Help 🙂

Note : I Clicked The Egg ! lol
I rated 5/5 and this needs to be stickied!
(Jul 7, 2009 02:16 AM)Apple Wrote:  I rated 5/5 and this needs to be stickied!

Thank you!
Yes It Does!
I'll ask Omni.
Oh really nice and thanks to the computer talk code
(Jul 7, 2009 06:43 AM)ChronicleForce Wrote:  Oh really nice and thanks to the computer talk code

Thanks ~
No Problem ~
Cool, nice codes there! 🙂
I just need to say, It got my attention with the fade in and fade out, interresting stuff like that keep it interresting... take out the timer and check box stuff and add more "cool" things.
imo.
[Image: l8foq.png]
i used to love playing with those, very basic ^^ coooool
very useful, worth a +rep i think.

Thanks

Dman
[Image: hf-sig.png]
Haha, I'm liking the computer speech
Totally bookmarked! Perfect, along with:
Code
https://hackforums.net/showthread.php?tid=95717


Possibly Related Threads...
Thread / Author Replies Views Last Post
by joepaullySep 2, 2024 10:05 PM 0 123 Sep 2, 2024 10:05 PM
Last Post: joepaully
[Source] by SIM-5420967May 26, 2024 09:50 AM 2 373 May 26, 2024 09:50 AM
Last Post: xiaowanga8
[.NET] by BladabindiMay 17, 2023 12:20 AM 1 178 May 17, 2023 12:20 AM
Last Post: NyQuil