#493 SMTP w/ phpMailer [followup to 1869063]

closed-accepted
None
5
2009-01-30
2008-10-09
waldo kitty
No

This patch set applies to PGV v4.1.5rel...

in a slight deviation from the original [1869063], thos one looks to see, not if there are SMTP settings, but if they are turned on via a checkbox...

this patch is based on the original posting patch posting [1869063] using phpMailer instead of the smtp class stuff from phpBB that i originally based /my personal/ mods on... i decided to follow the [1869063] patch set with an update rather than something else like that from phpBB (which included enhancements like using template files for the emails) mainly for simplicity and to also avoid "duplication of effort"...

in any case, this patch set uses the latest, at the time of this posting, phpMailer release... it should also be noted that there are now separate releases of phpMailer which depend on the version of php you are using... there are no modifications to the phpMailer files but these patches assume the use of php v5/6 and the included phpMailer files are for php v5/6... if you use php v4, then you /must/ visit the sourceforge phpMailer site and download those class files and replace the included one (attached files) with those... there are no checks in the code to see which version of phpMailer you are using... i assume that the PGV code patches will work with whatever version of phpMailer you choose to use but cannot guarantee this as i have no way of testing it...

i also had to forgo the use of the original SMTP[] array format used in [1869063] since i was unable to figure out how to (easily) add it to the necessary files... editconfig being the main one... thus, each SMTP related var is individually set and accessed... no big deal, really...

this patch set includes the needed edits to editconfig, admin.en, and configure_help.en in addition to those in functions_mail although the ones in this version of functions_mail are slightly different than those in the original posting of this patch for obvious reasons...

this patch set "works for me" with my ISP which requires authentication via login... i do not have any way to test "simple smtp", "pop before smtp" or any other method of sending mail via a smtp smarthost... i will, however try to fix whatever might be problematic and post updates to it as necessary...

there should be four (4) PGV files attached to /this/ update of this thread... they do not include the directories but i will list each...

./editconfig.php
./languages/admin.en.php
./languages/configure_help.en.php
./includes/functions_mail.php

and there are the two (2) new (php5/6) version files of phpMailer...

[looks like i can only attach one file at the time so none are attached to /this/ posting but each of the six (6) are attached in following updates...

Discussion

  • waldo kitty

    waldo kitty - 2008-10-09

    ./editconfig.php.patch

     
  • waldo kitty

    waldo kitty - 2008-10-09

    File Added: editconfig.php.patch

     
  • waldo kitty

    waldo kitty - 2008-10-09

    ./languages/admin.en.php.patch

     
  • waldo kitty

    waldo kitty - 2008-10-09

    File Added: admin.en.php.patch

     
  • waldo kitty

    waldo kitty - 2008-10-09

    File Added: configure_help.en.php.patch

     
  • waldo kitty

    waldo kitty - 2008-10-09

    ./includes/functions_mail.php.patch

     
  • waldo kitty

    waldo kitty - 2008-10-09

    File Added: functions_mail.php.patch

     
  • waldo kitty

    waldo kitty - 2008-10-09

    i am going to go ahead and attach the two phpMailer class files for php 5/6 but i /must/ also note that there are numerous phpmailer.lang-*.php files which need to be gotten and uploaded to your ./languages directory... this simplifies the use of different languages in your setup... i had forgotten about these files but they are necessary and easily retrieve by visiting the phpMailer site on sourceforge... the patch code i've posted takes these language files into account which also eases the implementation of phpMailer into PGV though it does use more files... that's actually a "GoodThing<tm>" since it relieves the PGV team from having to translate yet more schtuff ;)
    File Added: class.phpmailer.php

     
  • waldo kitty

    waldo kitty - 2008-10-09

    ./includes/class.phpmailer.php

     
  • waldo kitty

    waldo kitty - 2008-10-09

    please visit the phpMailer site (secure http in the following link), https://sourceforge.net/projects/phpmailer/ , for the necessary language files as well as the php v4 files if that is what you (still) run...
    File Added: class.smtp.php

     
  • waldo kitty

    waldo kitty - 2008-10-09

    ./includes/class.smtp.php

     
  • Łukasz Wileński

    Thanks, I added this to SVN

     
  • Łukasz Wileński

    • assigned_to: nobody --> wooc
    • status: open --> open-accepted
     
  • Łukasz Wileński

    • status: open-accepted --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks