![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Does anyone know how to code smtp authentication? below the code: Imports System Imports System.Net.Mail .... Sub MailToAdmin() Dim smtp As New SmtpClient("127.000.000.001") Dim mail As New MailMessage() Dim MessageSM As String 'create the mail message Try 'set the addresses mail.From = New MailAddress("technologia.auto... (AT) wella (DOT) pl") mail.To.Add("ad... (AT) wella (DOT) pl") 'set the content mail.Subject = "text nag³ówka" mail.Body = "Body messed¿a" 'send the message smtp.Send(mail) Catch myExceptionSM As Exception MessageSM = "There is error: " + myExceptionSM.ToString() Finally End Try End Sub / Maciej . |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |