13-11-12, 08:25 PM
sajad كتب :بسم الله الرحمن الرحيم
انظر هذا الموقع
http://stackoverflow.com/questions/68445...c-net-code
انا جربت هذا الكود
كود :
Dim m As MailMessage = New MailMessage
m.From = New MailAddress("you@yahoo.com", "Your Name")
m.To.Add(New MailAddress("Recipient@somedomain.com", "Recipient Name"))
m.Subject = "Hello"
' Specify an HTML message body
m.Body = "<html><body><h1>My Message</h1><br>Put the body here.</body></html>"
m.IsBodyHtml = True
' Send the message
Dim client As SmtpClient = New SmtpClient("smtp.mail.yahoo.com")
client.Send(m)client.Send(m)
حيث ان البرنامج يتوقف و يجلب لي هذا السطر

