specjalnie dla Ciebie kolego
require_once('include/phpmailer/class.phpmailer.php');
$mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
$mail->IsSendmail(); // telling the class to use SendMail transport
try {
$mail->AddReplyTo('*******@********.**', 'First Last');
$mail->AddAddress('*******@********.**', 'John Doe');
$mail->SetFrom('*******@********.**', 'First Last');
$mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
$mail->MsgHTML("<body>Test</body>");
$mail->Send();
//echo "Message Sent OK</p>\n";
} catch (phpmailerException $e) {
echo $e->errorMessage(); //Pretty error messages from PHPMailer } catch (Exception $e) {
echo $e->getMessage(); //Boring error messages from anything else! }
kod który wywołuje, to przykład dostarczony wraz z klasą. ścieżka do sendmail jest prawidłowa
więc jeśli Cie to nie naprowadziło na rozwiązanie mojego problemu, to przypominam że korzystam z klasy PHPmailer i to ona zwraca ten warningi