Quote:
Originally Posted by we_are_borg
Agree but if you look at it you know what to look for you still need to make your own code because you cant use it straight away.
|
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