function emailRegardingWrongBusiness($incoming, array $businesses) { $root_url = ROOT_URL; $businesses = implode(',', $businesses); $msg = <<<CUT Dear Admin, There is probably a problem with ePayph plugin coniguration in aMember Pro {$root_url}/admin/ ePay.ph sent a payment record with primary email address: {$incoming} However, you have only the following e-mail addresses configured in aMember Pro CP -> Setup/Configuration -> ePayph {$businesses} If it is really your transaction and your primary ePay.ph email address is {$incoming}, go to aMember CP -> Setup -> ePayph and set ePay.ph email address as {$incoming} Once you have fixed the configuration, please visit Amember CP -> Invoice Log, find this transaction (invoice #{$this->request->invoice}), and press "Retry Processing". -- Your aMember Pro script P.S. If you have any questions, resend this email to support@cgi-central.net with server access details. CUT; $mail = new Am_Mail(); $mail->toAdmin(); $mail->setBodyText($msg); $mail->setSubject('*** ePayph plugin error in Amember ***'); $mail->send(); }