Jump to content


Recommended Posts

incerc de ceva timp sa fac in visual basic 2008 un prog care trimite mail dar nu cu smtp de la gmail cu un smtp simplu dar nu merge sa trimita si cand il bag pe ala de la gmail merge

Asta e codul:

Imports System.Web

Imports System.IO

Imports System.Net.Mail

Public Class Form1

Private Sub btnSayHello_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSayHello.Click

Dim mail As New MailMessage

Dim SmtpServer As New SmtpClient

SmtpServer.Credentials = New Net.NetworkCredential("kame@pule-online.eu", "ikariam1")

SmtpServer.Port = 485

SmtpServer.Host = "mail.tupac.eu"

SmtpServer.EnableSsl = True

SmtpServer.EnableSsl = True


mail.From = New MailAddress("kame@pula-online.eu")

mail.Subject = TextBox2.Text

mail.Body = TextBox1.Text

Dim smtp As New Net.Mail.SmtpClient("", 8181)


End Sub

End Class

Am gresit ceva?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...