Sunday, 18 September 2016

GMAIL IN VB





-----------------------------------------------------------------------------------------------------------------
SEND GMAIL IN VB 2010 CODE:
1) DRAG & DROP ONE BUTTON & THREE TEXT BOXES
2) PASTE BELOW CODE
USE REAL GMAIL AND PASSWORD
3) YOUR CODE GMAIL ADDRESS  & GMAIL PASSWORD SHOULD BE EQUAL TO
YOUR DAILY ROUTINE REAL  GMAIL ADDRESS  & GMAIL PASSWORD WHICH
YOU USE TO OPEN GOOGLE ACCOUNT BECAUSE WITHOUT THIS IT WILL NOT
WORK
------------------------------------------------------------------------------------------------------------------

Imports System.Web
Imports System.IO
Imports System.Net.Mail

Public Class Form1
Dim email As New MailMessage
Dim smtp As New SmtpClient
Dim mail As System.Net.Mail.MailAddress
Dim Server As String = "smtp.live.com"

Private Sub Button1_Clivk(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Dim Smtp_Server As New SmtpClient
Dim e_mail As New MailMessage()
Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New Net.NetworkCredential("ayeshahttp@gmail.com","PassWord")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"
e_mail = New MailMessage()
e_mail.From = New MailAddress(TextBox1.Text)
e_mail.To.Add(TextBox2.Text)
e_mail.Subject = "Email Sending"
e_mail.IsBodyHtml = False
e_mail.Body = TextBox3.Text
Smtp_Server.Send(e_mail)
MsgBox("Mail Sent")
Catch error_t As Exception
MsgBox(error_t.ToString)
End Try
End Sub
End Class

-----------------------------------------------------------------------------------------------------------------
READ MORE:
------------------------------------------------------------------------------------------------------------------

GMAIL IN VB - YouTube

https://www.youtube.com/watch?v=128dOXtak6k
5 hours ago - Uploaded by SAVE MONEY
http://fbgadgets.blogspot.co.uk/2016/09/gmail-... ... VB.NET How to Send Mail SMTPclient Gmail + Source ...

POP AND IMAP SETTING FOR OUTLOOK - YouTube

https://www.youtube.com/watch?v=dwxztj02uVM
9 mins ago - Uploaded by SAVE MONEY
POP AND IMAP SETTING FOR OUTLOOK ... Microsoft Outlook 2016 Tutorial: Adding POP IMAP Account in ...

Send Email using Gmail in VB.NET - Email Component & Email Server

https://www.emailarchitect.net/easendmail/kb/vbnet.aspx?cat=2

3 Feb 2016 - In this section, I will introduce how to send email using Gmail account in VB.NET. GmailSMTP server address is "smtp.gmail.com". It requires ...

Send Email using Gmail in VB 6.0 - Email Component & Email Server

https://www.emailarchitect.net/easendmail/kb/vb.aspx?cat=2

3 Feb 2016 - In this section, I will introduce how to send email using Gmail account in VB 6.0. GmailSMTP server address is "smtp.gmail.com". It requires ...

How do I send a gmail email in vb.net? - Stack Overflow

stackoverflow.com/questions/18153542/how-do-i-send-a-gmail-email-in-vb-net

9 Aug 2013 - Try this - I know it works. Dim Mail As New MailMessage Dim SMTP As New SmtpClient("smtp.gmail.com") Mail.Subject = "Security Update" Mail.

sendmail - Sending E-mail to Gmail account using VB.net 2010 ...

stackoverflow.com/questions/.../sending-e-mail-to-gmail-account-using-vb-net-2010

14 Aug 2015 - Can't see what's behind your error box, but you're probably not setting the smtp.Credentials correctly. Here's an example: ...

How to Send Mails from your GMAIL Account through VB.NET or C# ...

www.codeproject.com › Articles › General Programming › Internet / Network › Email

18 Sep 2007 - Simple application to send mails to any mail clients from Gmail account // Using VB.NET Imports System.Net.Mail Public Class mailform Dim ...

How can I send e-mail through Gmail with C# or VB.NET - MailBee ...

www.afterlogic.com/...e.../how-can-i-send-e-mail-through-gmail-with-c-or-vb-net

Gmail accepts only secure SSL connections, and thus you should use MailBee.NET SMTP component in SSL mode. using MailBee; using MailBee.SmtpMail ...

VB.Net - Send Email - Tutorialspoint

https://www.tutorialspoint.com/vb.net/vb.net_send_email.htm

VB.Net Send Email - Learn VB.Net Programming in simple and easy steps starting from ... Host = "smtp.gmail.com" e_mail = New MailMessage() e_mail.
You visited this page on 16/09/16.

-----------------------------------------------------------------------------------------------------------------
SOLVE SMTP ERROR PROBLEM:
------------------------------------------------------------------------------------------------------------------
BEFORE SEND MESSAGE
1) FIRST SOVLE SMTP PROBLEM
Smtp authentication exception IN VB
2)  IMAP ENABLED
3) CORRECT GMAIL ADDRESS IN CODE
4) CORRECT THIS GMAIL PASSWORD IN CODE

------------------------------------------------------------------------------------------------------------------
USEFUL IMAGES:
https://www.google.com/settings/security/lesssecureapps
https://mail.google.com/mail/u/0/#settings/fwdandpop
------------------------------------------------------------------------------------------------------------------
GMAIL IN VB
GMAIL IN VB
------------------------------------------------------------------------------------------------------------------
OR USE UPPER CODE WITH TWO VARIABLES
-----------------------------------------------------------------------------------------------------------------

Imports System.Web
Imports System.IO
Imports System.Net.Mail

Public Class Form1


Private Sub Button1_Clivk(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Try


Dim Smtp_Server As New SmtpClient

Smtp_Server.UseDefaultCredentials = False
Smtp_Server.Credentials = New Net.NetworkCredential("ayeshahttp@gmail.com", "PassWord")
Smtp_Server.Port = 587
Smtp_Server.EnableSsl = True
Smtp_Server.Host = "smtp.gmail.com"

Dim e_mail As New MailMessage()
e_mail = New MailMessage()
e_mail.From = New MailAddress(TextBox1.Text)
e_mail.To.Add(TextBox2.Text)
e_mail.Subject = "Email Sending"
e_mail.IsBodyHtml = False
e_mail.Body = TextBox3.Text

Smtp_Server.Send(e_mail)
MsgBox("Mail Sent")

Catch error_t As Exception
MsgBox(error_t.ToString)

End Try

End Sub


End Class














1 comments:

  1. I am following you from quit awhile and found Another Well explained article. Thank you for sharing.

    UK Leading Mobile & Computer Parts Wholesaler

    ReplyDelete

FB Gadgets | Template Designed by Fatakat PhotosCoolBThemes.com
Code by : paid web directory

https://www.google.co.uk/search?q=site%3Ablogspot.com+fbgadgets