Quote:
Originally Posted by MicroHellas
I GOT HOW IT WORKS !!!  - Need to setup a mailbox eg bounce@domain.com
- Assign this email address as "From email" to microNEWSLETTER Options
- Add the following code in a cron file
Code:
<?
$mailbox = "{mail.domain.com:110/pop3/notls}INBOX";
$user = "bounce@domain.com";
$pass = "xxxxxxxxxx";
$mbox = imap_open($mailbox,$user,$pass);
$headers = imap_sort($mbox,SORTDATE,1);
foreach($headers as $key=>$val)
{
$relay_from = '';
$headerinfo = imap_headerinfo($mbox, $val);
$relay_from = $headerinfo->from[0]->mailbox . "@" . $headerinfo->from[0]->host;
echo $relay_from;
}
imap_expunge($mbox);
imap_close($mbox);
?>
Of course I currently let out to delete the message, something that it will be done after adding the email in a bounce list.
So, tomorrow expect a new upgrade !!
Maria
|
Nice searching Maria love your dedication. But to make it more complicated for you if some one is listed on the blacklist by next visit on forum confront him with the fact that the email address is bounced and that he needs to update it and make it mandatory.