Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 - 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
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; }[/code] ``` 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: [code]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 )[/code] This is way beyond my skill set. Failed try lacking exception. Need help. Thanks; Bill[/quote]" />

Re: oledrion: phpmailer postSend() not returning - stuck in try loop
by Yurdal on 2019/12/9 18:35:10

@rossb
Really good work, someone has to give this modules a new live, as now most of the modules are not godd or not functioning any more
I'm afraid I cant help with code but if there any need to test environment I can help
Re: oledrion: phpmailer postSend() not returning - stuck in try loop
by rossb on 2019/12/9 13:32:17

figured out you're really busy - not rocket science.

when you do get around to oledrion, hopefully only tasks remaining:
- code review my RC2 changes - will send U patches
- theming needs serious work

...B
Re: oledrion: phpmailer postSend() not returning - stuck in try loop
by Mamba on 2019/12/9 0:20:30

Please keep up posted on your progress.

I don't think, I'll have the time to dive into Oledrion before Christmas, but maybe somebody else could help....
Re: oledrion: phpmailer postSend() not returning - stuck in try loop
by Mamba on 2019/12/8 4:21:46

Bill,
for code, please use

[ code]
your code here
[/code]

instead of

```
your code here
```

There is a button for it: < />

If you do it manually, please remove the space after the [
Re: oledrion: phpmailer postSend() not returning - stuck in try loop
by rossb on 2019/12/7 16:56:46

Found a workaround. May be xoops-2.5.9 bug

/class/mail/phpmailer/class.phpmailer.php, alter function (comment stuff):

le="color: #000000"><?php public function postSend() { try { // Choose the mailer and send through it 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); //} //file_put_contents(OLEDRION_GATEWAY_LOG_PATH, "!" , FILE_APPEND | LOCK_EX); return $this->mailSend($this->MIMEHeader, $this->MIMEBody); } } catch (phpmailerException $exc) { $this->setError($exc->getMessage()); $this->edebug($exc->getMessage()); if ($this->exceptions) { throw $exc; } } return false; }



since
le="color: #000000"><?php $this->$sendMethod($this->MIMEHeader, $this->MIMEBody);

does not return, causes exception with no error text.

...B

Who's Online

228 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 228


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits