'; 387 | foreach ($this->errors as $e) { 388 | print_r($e); 389 | } 390 | echo ''; 391 | } 392 | } 393 | 394 | /** 395 | * Get an array of error messages, if any. 396 | * 397 | * @return array 398 | */ 399 | public function getErrors() 400 | { 401 | return $this->errors; 402 | } 403 | 404 | /** 405 | * POP3 connection error handler. 406 | * 407 | * @param int $errno 408 | * @param string $errstr 409 | * @param string $errfile 410 | * @param int $errline 411 | */ 412 | protected function catchWarning($errno, $errstr, $errfile, $errline) 413 | { 414 | $this->setError( 415 | 'Connecting to the POP3 server raised a PHP warning:' . 416 | "errno: $errno errstr: $errstr; errfile: $errfile; errline: $errline" 417 | ); 418 | } 419 | } 420 | -------------------------------------------------------------------------------- /Php/Mail-Gonderme/PHPMailer/src/SMTP.php: -------------------------------------------------------------------------------- 1 | 9 | * @author Jim Jagielski (jimjag)
Bu bir denemedir.
"; 32 | 33 | $mail->addAttachment("dosya.txt"); 34 | 35 | if ($mail->send()) 36 | echo "Mail gonderimi basarili."; 37 | else 38 | echo "Malesef olmadi."; 39 | 40 | 41 | ?> -------------------------------------------------------------------------------- /Php/Mail-Gonderme/mail-template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 54 | 55 | 56 |Yazılarımdan haberdar olmak istediğin için çok teşekkür ederim. Umarım 63 | keyifli zaman geçireceğiz ve birbirimizden bir çok şey öğreneceğiz.
64 | Siteye Dön 65 |