Hi;
xoops 2.5.9, sme-server 9.2
I am attempting to update oledrion e-commerce to latest Paypal API and added functionality. Been stuck on sending purchase notification emails for over a week.
All other site emails working properly: registration, contact us...
email config (all blank except):
From user: xoops
Delivery Method: PHP Mail()
Path to sendmail: /usr/sbin/sendmail
class/mail/phpmailer/class.phpmailer.php::postSend() stuck in infinite retry loop
modified (for debug info) code:
...
public function postSend()
{
try {
// Choose the mailer and send through it
//file_put_contents(OLEDRION_GATEWAY_LOG_PATH, "postsend1, method: " . $this->Mailer . "n", FILE_APPEND | LOCK_EX);
file_put_contents(OLEDRION_GATEWAY_LOG_PATH, "." , FILE_APPEND | LOCK_EX);
switch ($this->Mailer) {
case 'sendmail':
case 'qmail':
return $this->sendmailSend($this->MIMEHeader, $this->MIMEBody);
case 'smtp':
return $this->smtpSend($this->MIMEHeader, $this->MIMEBody);
case 'mail':
return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
default:
$sendMethod = $this->Mailer.'Send';
if (method_exists($this, $sendMethod)) {
return $this->$sendMethod($this->MIMEHeader, $this->MIMEBody);
}
return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
}
} catch (phpmailerException $exc) {
file_put_contents(OLEDRION_GATEWAY_LOG_PATH, "postsend2, error: " . $exc->getMessage() . "n", FILE_APPEND | LOCK_EX);
$this->setError($exc->getMessage());
$this->edebug($exc->getMessage());
if ($this->exceptions) {
throw $exc;
}
}
return false;
}
```
What I am seeing:
- Many "." in logfile, one per try attempt
- No catch exception (no entry in logfile)
- My mail send function never returns
- No record of "retry" email attempts in system logs
- No errors reported
My best "guess" as to what is happening is the email contents are template generated and not to mail's liking.
example email template input:
msg: Array
(
[COMMANDE] => 6 SecureOffice Donate 1 $10.00
Total $10.00
[NUM_COMMANDE] => 252
[NOM] => Ross
[PRENOM] =>
[ADRESSE] =>
[CP] => noe1l0
[VILLE] => Oakland
[PAYS] => United States
[TELEPHONE] =>
[EMAIL] => ****private
[URL_BILL] => https://www.ayz.org/modules/oledrion/invoice.php?id=252&pass=****private
[IP] => 192.168.1.27
[FACTURE] => Yes
[TRANSACTION_ID] => 72K6104879318750E
)
This is way beyond my skill set. Failed try lacking exception. Need help.
Thanks;
Bill