caute na posielanie mailov pouzivam naseldujuci kod:
Dim EmailMessage As MailMessage = New MailMessage
'Dim Attachment As Attachment
EmailMessage.From = New MailAddress("[email protected]")
EmailMessage.To.Add("[email protected]")
'EmailMessage.CC.Add("[email protected]")
'EmailMessage.Bcc.Add("[email protected]")
EmailMessage.Subject = ("test")
'Attachment = New Attachment("C:\test.txt")
'EmailMessage.Attachments.Add(Attachment)
EmailMessage.Body = "This is just a test"
EmailMessage.Priority = MailPriority.High
EmailMessage.IsBodyHtml = True
Dim smtp As New SmtpClient("smtp.gmail.com")
Dim basicAuthenticationInfo As New System.Net.NetworkCredential("aaa", "bbb")
smtp.Credentials = basicAuthenticationInfo
smtp.Send(EmailMessage)
no akosi mi to posielanie nefunguje. V com je podla vas problem? vdaka
|