code to send email via gmail account

Closed job
no avatar
subiektywnedodatki
Employer
24 deals
Job category:
Desktop/web applications
Expected budget:

Negotiable

Preferable skills:
Published:
Finished

Job description

I need a simple, proven vb.net code to send messages via SMTP through a gmail account.

I've tried various sample codes and settings suggested by uncle gugel, but perhaps the problem also lies in the configuration on the account itself. A doc like

Dim SmtpServer As New SmtpClient("smtp.gmail.com", 465)

SmtpServer.EnableSsl = True

SmtpServer.Credentials = New Net.NetworkCredential("email@gmail.com", "password")

Dim mail As New MailMessage("email@gmail.com", "email@gmail.com", "Test", "Test Body")

SmtpServer.Send(mail)

connected to test account + information on what to change in Gmail account settings to make it work properly.

I need it yesterday because I have enough of my own tests :-)

Required functions:

Submitted offers 1

Add your offer or ask the client for more details