Found another issue/bug. On hosthgator, the imap_open

Found another issue/bug. On hosthgator, the imap_open function needs a different parameter. You call it POP3 setting in the settings page, but it an imap function you are using to connect. To correct this I made some changes:

e-Newsletter -> Settings -> Bounce

Pop3 Host: localhost : 143

Then in the e-newsletter.php, line 1685 becomes:

$mbox = imap_open( '{'.$email_host.':'.$email_port.'/notls}INBOX', $email_username, $email_password ) or die( imap_last_error() );

  • Jeff

    Hi there. Nice update. I'm testing a bit and I found these issues right away:

    1. Hostgator has a specific imap_open parameter and to make the Bounce test connection work you need to set it to localhost and port 143 in the settings page, but the code needs to be changed to {'.$email_host.':'.$email_port.'/pop3/notls}INBOX You can not use /norsh and /novalidate-cert on hostgator.

    2. Got Bouce test to work properly and it sends the test email and deletes it correctly from the mailserver, but the system doesn't actually check the bounce email account after a mailing has been sent (or does it check after a certain amount of time?) This is the header of a fake email in the newsletter mailing and it was not picked up as a bounced email in the members list:

    Return-path: <>
    Envelope-to: bounce@mokabox.tv
    Delivery-date: Sun, 02 Jun 2013 04:31:54 -0500
    Received: from gateway07.websitewelcome.com ([69.56.170.18]:60106)
    by gator453.hostgator.com with esmtp (Exim 4.80)
    id 1Uj4dm-0001Pe-Md
    for bounce@mokabox.tv; Sun, 02 Jun 2013 04:31:54 -0500
    Received: by gateway07.websitewelcome.com (Postfix)
    id 3137D6BAA9F03; Sun, 2 Jun 2013 04:31:48 -0500 (CDT)
    Date: Sun, 2 Jun 2013 04:31:48 -0500 (CDT)
    From: MAILER-DAEMON@gateway07.websitewelcome.com (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: bounce@mokabox.tv
    Auto-Submitted: auto-replied
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
    boundary="056396BAA9EE8.1370165508/gateway07.websitewelcome.com"
    Content-Transfer-Encoding: 8bit
    Message-Id: <20130602093148.3137D6BAA9F03@gateway07.websitewelcome.com>

    3. The cron is a big issue. This is not working properly as I mentioned yesterday and still doesn't. Hostgator has a strict 500 per hour mailing policy like many servers due to spam. I set the value to 300 per hour and I get catch on the second mailing each time because I think it goes off BEFORE the hour is up.
    Would this work to do 1 hour + 10 mins for each cycle?
    $limit_time_start = mktime( $hour , 0, 0, $month, $day, $year ) ;
    $limit_time_end = mktime( $hour + 1, +10, 0, $month, $day, $year );