Moodle

New version of PHPMailer

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Libraries
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

A new version of PHPMailer came out in early June 2008, which works with PHP5, in E_STRICT mode.

http://sourceforge.net/project/showfiles.php?group_id=26031&package_id=252700

Also, among the fixes since 1.7.3 (which is the version we are using, according to the changelog):

  • fixed the SendMail security issues (input validation vulnerability)
  • added TLS/SSL SMTP support
  • added S/MIME functionality (ability to digitally sign emails)
  • addressed issue of multibyte characters in subject line and truncating

Full changelog: http://phpmailer.codeworxtech.com/changelog.html

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Just to ping that I remember we hacked this a lot to build proper utf-8 mails (headers mainly) and so, so be warned about possible regressions.

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Just to ping that I remember we hacked this a lot to build proper utf-8 mails (headers mainly) and so, so be warned about possible regressions. Ciao
Hide
Matt Gibson added a comment -

Sorry if this is actually unrelated, but will the new PHPmailer have any impact on Moodle's communication with exchange server during bulk messaging? I'm still looking for a solution to MDL-13439 which is a big issue with teachers mailing whole classes regularly.

Show
Matt Gibson added a comment - Sorry if this is actually unrelated, but will the new PHPmailer have any impact on Moodle's communication with exchange server during bulk messaging? I'm still looking for a solution to MDL-13439 which is a big issue with teachers mailing whole classes regularly.
Hide
Chris Potter added a comment -

Any progress on any of this? Would it be difficult to hack into a 1.8 or 1.9 install? I see that you're planning on introducing it in 2.0, but we're making server change to Exchange 2007 and with it, we're going to be using TLS/SSL connections between the server and clients.

Thoughts? Suggestions?

Show
Chris Potter added a comment - Any progress on any of this? Would it be difficult to hack into a 1.8 or 1.9 install? I see that you're planning on introducing it in 2.0, but we're making server change to Exchange 2007 and with it, we're going to be using TLS/SSL connections between the server and clients. Thoughts? Suggestions?
Hide
David Mudrak added a comment -

I have got a problem with phpmailer. It does not work with internal mail() mechanism - it leaves "ERROR: Could not instantiate mail function". If I set a SMTP server, it works. I went thru the phpmailer library and it is weird. It looks like @mail() call returned false. But if I write my custom script using mail(), it works... I was told that there already were some problems with phpmailer in combination with some PHP versions.

My setup is "PHP Version 5.2.8-pl1-gentoo". The bug reported on both 1.8.x and 1.9.4 (recent releases).

Show
David Mudrak added a comment - I have got a problem with phpmailer. It does not work with internal mail() mechanism - it leaves "ERROR: Could not instantiate mail function". If I set a SMTP server, it works. I went thru the phpmailer library and it is weird. It looks like @mail() call returned false. But if I write my custom script using mail(), it works... I was told that there already were some problems with phpmailer in combination with some PHP versions. My setup is "PHP Version 5.2.8-pl1-gentoo". The bug reported on both 1.8.x and 1.9.4 (recent releases).
Hide
David Mudrak added a comment -

I have found the same problem described at http://forum.joomla.org/viewtopic.php?f=431&t=313422

Show
David Mudrak added a comment - I have found the same problem described at http://forum.joomla.org/viewtopic.php?f=431&t=313422
Hide
David Mudrak added a comment -

Weird... The attached file works pretty fine and it clones the behaviour of standard Moodle email_to_user() But if I just leave Moodle to send email via internal PHP mechanism, no email is sent and I have "ERROR: Could not instantiate mail function." in the log...

Show
David Mudrak added a comment - Weird... The attached file works pretty fine and it clones the behaviour of standard Moodle email_to_user() But if I just leave Moodle to send email via internal PHP mechanism, no email is sent and I have "ERROR: Could not instantiate mail function." in the log...
Hide
Iñaki Arenaza added a comment -

David,

why don't you remove the '@' from the mail() call inside MailSend() and enable PHP error logging so you can see why mail() is returning false?

Saludos. Iñaki.

Show
Iñaki Arenaza added a comment - David, why don't you remove the '@' from the mail() call inside MailSend() and enable PHP error logging so you can see why mail() is returning false? Saludos. Iñaki.
Hide
Petr Škoda (skodak) added a comment -

is this related to this PHP 5.2.6 bug http://bugs.php.net/bug.php?id=14032 ?

Show
Petr Škoda (skodak) added a comment - is this related to this PHP 5.2.6 bug http://bugs.php.net/bug.php?id=14032 ?
Hide
Petr Škoda (skodak) added a comment -

Seems to work fine for many ppl now, please reopen if necessary.
Thanks you for the report.

Petr Skoda

Show
Petr Škoda (skodak) added a comment - Seems to work fine for many ppl now, please reopen if necessary. Thanks you for the report. Petr Skoda

Dates

  • Created:
    Updated:
    Resolved: