ozaman kodlarınız veya giriş bilgilerinizde problem var.

ben genelde asp kullanıyorum ve kod yapısı benzerdir. bir karşılaştırın isterseniz.

postaci.Host = "smtp.yandex.com.tr"
postaci.Port = 465
postaci.SSL = True
postaci.Username = eposta 
postaci.Password = epostasifre 
postaci.From = eposta