💡 Visual Basic 2010 Express, Code for smtp, How to Send the Email and Password to Mail

Posts 1–6 of 6 · Page 1 of 1
💡 Visual Basic 2010 Express, Code for smtp, How to Send the Email and Password to Mail
Good Day Sir/Mam... Do you Have any Code to send an Email and Password to my Email.

Sample

Login: gmail@gmail.com
Password: gmail


the gmail password was send to my mail account.

do you have any code for that?
I have it somewhere on my pcplease wait ill search for it
Btw i'm not responible for the info i'm giving you

---------- Post added at 01:39 PM ---------- Previous post was at 01:38 PM ----------

Ps im on my android now so i send it as soon as i can access my pc
Code:
Dim smtp As New SmtpClient()
Dim email As New MailMessage()
smtp.Credentials = New Net.NetworkCredential("yourgmail@gmail.com", "yourpass")
smtp.Port = 587
smtp.Host = ("smtp.gmail.com")
smtp.EnableSsl = True
email = New MailMessage()
email.From = New MailAddress("user@gmail.com")
email.To.Add("empfaenger@domain.com")
email.Subject = ("Subject")
email.Body = ("Body")
smtp.Send(email)
This should work, dont forget to Imports.system.net.mail
Quote Originally Posted by timiostimio View Post
Code:
Dim smtp As New SmtpClient()
Dim email As New MailMessage()
smtp.Credentials = New Net.NetworkCredential("yourgmail@gmail.com", "yourpass")
smtp.Port = 587
smtp.Host = ("smtp.gmail.com")
smtp.EnableSsl = True
email = New MailMessage()
email.From = New MailAddress("user@gmail.com")
email.To.Add("empfaenger@domain.com")
email.Subject = ("Subject")
email.Body = ("Body")
smtp.Send(email)
This should work, dont forget to Imports.system.net.mail
Copy and Paste LOL
Quote Originally Posted by timiostimio View Post
@wut12345 Yes lol,but this works.
Ok whatever works
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us