Hej,
nigdy wcześniej nie korzystałem z PEAR, to mój pierwszy raz ;)
Wszystko ładnie działa, ale gdy do nadawcy dodaję kropkę to maile nie dochodzą.
Tak działa:
$From = "samsung-mobilepl [email protected]";
A tak już nie:
$From = "samsung-mobile.pl [email protected]";
O co chodzi?!
Oto skrypt:
require_once('Mail.php');
$subject = "temat test";
$mailmsg = 'testowo';
$From = "samsung-mobile.pl <[email protected]>";
$To = $email;
$recipients = $email;
$headers["From"] = $From;
$headers["To"] = $To;
$headers["Subject"] = $subject;
$headers["Reply-To"] = "[email protected]";
$headers["Content-Type"] = "text/html; iso-8859-2";
$headers["Return-path"] = "[email protected]";
$smtpinfo["host"] = "----------";
$smtpinfo["port"] = "25";
$smtpinfo["auth"] = true;
$smtpinfo["username"] = "----------";
$smtpinfo["password"] = "------------";
$mail_object =& Mail::factory("smtp", $smtpinfo);
$mail_object->send($recipients, $headers, $mailmsg);