15-10-12, 01:51 AM
جرب الكود التالي أنا جربته مع Gmail
PHP كود :
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim e1 As New System.Net.Mail.SmtpClient()
e1.Credentials = New Net.NetworkCredential(Your Email, Password)
e1.EnableSsl = True
e1.Port = 587
e1.Host = "smtp.gmail.com"
e1.Send(Your Email, To Email , Text,Title)
MsgBox("send")
End Sub
End Class
