Php ile Ean13 check digit hesaplama

<?php function ean13_check_digit($digits){ //first change digits to a string so that we can access individual numbers $digits =(string)$digits; // 1. Add the values of the digits in the even-numbered positions: 2, 4, 6, etc. $even_sum = $digits{1} + $digits{3} + $digits{5} + $digits{7} + $digits{9} + $digits{11}; // 2. Multiply this result by 3. $even_sum_three…

Devamını oku

Yandex smtp mail gönderme hatası

Yakın bi zamanda yandex smtp ayarlarını değiştirdiğinden dolayı smtp üzerinden mail gönderirken sıkıntılar yaşanıyordu. Çözümü aşağıda gibi:   “port=25 ve SSL = true” olarak ayarladığınızda sorun düzeliyor. var msg = new MailMessage(from, to, subject, body); var smtpClient = new SmtpClient(&quot;smtp.yandex.com.tr&quot;, 25); smtpClient.Credentials = new NetworkCredential(username, password); smtpClient.EnableSsl = true; smtpClient.Send(msg);…

Devamını oku