VB.NET Tutorial 24 - Sending An Email (Visual Basic 2008/2010)

preview_player
Показать описание
In this tutorial, we jump right into the fun side of Visual Basic. We will learn how to send an email just using code. Please google your emails SMTP host and port if you do not have a googlemail account. The settings I show should work for googlemail only.

For more information, check out the website:
Рекомендации по теме
Комментарии
Автор

Brilliant vid thanks man, well explained and clearly defined information really appreciate it keep up the vids

rumeluddin
Автор

Thank you so much! Excellent tutorial works like a treat. Made mine a little more useful by disabling button after it's click to reduce spam and having a label show when the message has been sent, thanks so much for an excellent tutorial, I subbed!

iProRyan
Автор

no!! were here because information technology leads us for a better future!!!

proud to be i.t student

joshuacalderon
Автор

This works great :) Thank you very Much :)

ruchira
Автор

Sweet. Thank you and it worked like a charm. Now, just need to be able to have my form data be sent.

PG
Автор

Thank you so much! Great help for me :) God Bless

bsbajanellehannaespina
Автор

i have use it in the past for hacking Linage2 accaounts! With the right icon and design it can be very useful! Thank you dude...

doukakis
Автор

SUGOI!!! great tutorial by the way! (Y)

skylertv_
Автор

thank you so much i got it to work i just had to delete the whole thing and start over and do the same exact thing 7 times

Normanntrees
Автор

i debugged it but got this feedback from the server "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at"

baysixbitiyong
Автор

@thatwaslawlin
What SMTP are you using?

Your most likely cause is that your server denies foreign connect.

JoshFoster
Автор

Your videos are so helpful for new people like me. I have VBA experience but no VB.NET until I found your tutorials. Thanks so much! I was wondering if you would know why I get "SmtpException was unhandled" on the last line: SMTP.Send(mail). I've searched for a possible solution with help but to no avail. I am using Visual Studio 2010. Your input would be greatly appreciated.

Stuugie
Автор

@r3Fuze what is the smtp and port of yahoo?...

LosTecH
Автор

@MrYoranimo I already fixed it:) Now i have a new problem. When im trying to run the program, and send the email, it says, the SMTP-server needs a secure connection, or it wont get accepted ?

Fredewiqqa
Автор

mail.from i can basically put anything inside and it still works? why? i expected the incoming address of the email would be whatever in mail.from, but it was my username anyways. so what's the point of mail.from?

acheirs
Автор

If you get an error its because of quotations in the code

SMTP.Port = "587" it should be like this SMTP.Port = 587

SMTP.Port = "587" SMTP.Port = 587 (no "587")

Now it should work!!! :D Happy emailing!

arashkordi
Автор

Sir I appreciate your hard work I am a IS student a beginner thanks to this tutorial
i think i am now a pro in using vb.net because of u. please upload more... and do u have any tutorial for mysql? thanks ... TeachMeComputer Rocks!

neatemo
Автор

does the email.body refers to the content of the mail ?

PregnantAndProud
Автор

I am creating an application to send mail from outlook but I don't know the smtp or port value of my office server. So, please help me how I can identity the smtp and port value through vb.net (2012) programing so that mail can be sent from any machine where this application will be installed.

malayray
Автор

@r3Fuze i use smtp.mail.yahoo.com

then the port is 465?...but there is still an error...

LosTecH