Testiram UTF-8 - č,š,ž'; $textBody = 'Testiram UTF-8 - č,š,ž\nPrva alineja'; // Create new instance $mail = new htmlMimeMail5(); // Set proper charset $mail->setHTMLCharset ("UTF-8"); $mail->setHeadCharset ("UTF-8"); $mail->setTextCharset ("UTF-8"); $mail->setSubject ('Testni Email'); // Set HTML body. If email application doesn't support HTML, text body will be displayed $mail->setHtml ($htmlBody); $mail->setText($textBody); // Who send this? $mail->setFrom ('Rok Meglič '); // You can also add cc, bcc $mail->setBcc('test@test.com'); $mail->setCc('test@test.com'); // Add some files $mail->addEmbeddedImage(new fileEmbeddedImage('trspletlogo.bmp')); $mail->addAttachment(new fileAttachment('Excel.rar')); // Try to send email $status = $mail->send(array ('rok.meglic@gmail.com', 'info@trsplet.com')); if ($status === false) { echo 'Pošiljanje e-pošte ni uspelo'; } else { echo 'Pošiljanje e-pošte je uspelo'; } ?>