Ticket #1202 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

jMailer: failure when using SingleTo feature and mail() function

Reported by: Julien Owned by: Julien
Priority: high Milestone: Jelix 1.2RC1
Component: jelix:utils Version: trunk
Severity: major Keywords:
Cc: Php version:
Hosting Provider: Blocked By:
Documentation needed: no Blocking:

Description

I noticed a bug when using SingleTo? feature with mail() function transport in current trunk version (so with updated phpMailer 5.1)

the problem is in class.phpmailer.php at line 648

$params = sprintf("-oi -f %s", $this->Sender);

the error occurs at line 668

$rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);

because $this->Sender may be empty (we're in the "else" block at line 665 where sender is empty or safe_mode does not allow extra params)

In this "else" block, if SingleTo? is false, mail() is called without $params, and works fine.

I suggest removing 5th argument on line 668

patch coming...

I think it must be fixed for jelix 1.2

Change History

Changed 3 years ago by Julien

  • status changed from new to assigned

Changed 3 years ago by Julien

  • review set to review?

Changed 3 years ago by laurentj

  • review changed from review? to review+

Changed 3 years ago by laurentj

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.