Paddy Gibbins
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Support Plus Responsive Ticket System] Email piping on Non-cPanel sitesHi 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
Forum: Plugins
In reply to: [WP Support Plus Responsive Ticket System] Email piping on Non-cPanel sitesHi 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/logThe 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