Hello,
Where is the error on this codes :
use Laminas\Mail\Storage\Pop3;
require_once 'vendor/autoload.php';
$mail = new Pop3([
'host' => 'pop.gmail.com',
'user' => 'xxxxxxxx@gmail.com',
'password' => 'xxxxxxx',
'port' => '995',
'ssl' => 'TLS'
]);
echo $mail->countMessages() . " messages found\n";
foreach ($mail as $message) {
printf("Mail from '%s': %s\n", $message->from, $message->subject);
}
thx