PHP 8.5.0 Alpha 2 available for testing

Voting

: max(nine, two)?
(Example: nine)

The Note You're Voting On

deenfirdoush at gmail dot com
15 years ago
Simple example on how to read body message of the recent mail.

<?php
$imap
= imap_open("{pop.example.com:995/pop3/ssl/novalidate-cert}", "username", "password");

if(
$imap ) {

//Check no.of.msgs
$num = imap_num_msg($imap);

//if there is a message in your inbox
if( $num >0 ) {
//read that mail recently arrived
echo imap_qprint(imap_body($imap, $num));
}

//close the stream
imap_close($imap);
}
?>

<< Back to user notes page

To Top