Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Torsten,

    Have entered the path based on your description as below:

    path = /var/www/vhosts/paddygibbins.me.uk/httpdocs/wp-content/plugins/wp-support-plus/pipe/mailPipe.php.

    Apparently still does not work, mailbox in question receives the email but doesn’t hit ‘WP Support Plus’

    The issue appears to be with ‘mailPipe.php, that there is something that I am missing on that?:

    #!/usr/bin/php -q
    <?php
    require_once(‘mailReader.php’);
    $mail = new mailReader();
    $mail->readEmail();

    if(!$mail->isReturnedEmail($mail)){
    define( ‘BASE_PATH’, find_wordpress_base_path().”/” );
    require(BASE_PATH . ‘wp-load.php’);
    define( ‘WCE_PLUGIN_DIR’, BASE_PATH.’wp-content/plugins/wp-support-plus/’ );
    include_once( WCE_PLUGIN_DIR.’includes/admin/ajax.php’ );
    require_once(‘pipe.php’);
    }

    function find_wordpress_base_path() {
    $dir = dirname(__FILE__);
    do {
    //it is possible to check for other files here
    if( file_exists($dir.”/wp-config.php”) ) {
    return $dir;
    }
    } while( $dir = realpath(“/var/www/vhosts/paddygibbins.me.uk/httpdocs/wp-content/plugins/wp-support-plus/pipe/mailPipe.php”) );
    return null;
    }

    ?>

    Both ‘mailPipe.php’ and ‘getmailrc’ have executable permissions set on the owner.

    Any outside insight would be appreciated.

    Thanks,

    Paddy

    Hi there,

    Many thanks for this useful fix for those who do not host on cPanel software.

    I have tried the below:

    [retriever]
    type = SimpleIMAPRetriever
    server = MYMAILSERVER
    username = MYSUPPORTEMAIL
    password = MYPASSWORD

    [destination]
    type = MDA_external
    path = paddygibbins.me.uk/wp-content/plugins/wp-support-plus/pipe/mailPipe.php

    [options]
    verbose = 2
    delete = true
    message_log = ~/.getmail/log

    The path & realpath is as follows:

    “paddygibbins.me.uk/wp-content/plugins/wp-support-plus/pip/mailPipe.php”

    Any insight would be useful as cannot see where am going wrong

    Many thanks

    W: paddygibbins.me.uk/support

Viewing 2 replies - 1 through 2 (of 2 total)