#438 SMTP mail via PHPMailer added to functions_mail.php

Normal Version
closed-accepted
5
2008-12-22
2008-01-11
hjernespiser
No

This applies to 4.1.3. If SMTP settings are detected in config.php, pgvMail sends via PHPMailer. If not, it will default to PHP's mail function.

Configuration options are not yet added to editconfig.php. SMTP settings were added manually to config.php.

Example:
$PGV_SMTP['Host'] = 'localhost';
$PGV_SMTP['Helo'] = 'zuul.org';
$PGV_SMTP['Port'] = '25';

More configuration values (for SMTP Auth, etc.) can be found at http://phpmailer.codeworxtech.com/properties.html

Discussion

  • hjernespiser
    hjernespiser
    2008-01-11

    functions_mail.php

     
    Attachments
  • hjernespiser
    hjernespiser
    2008-01-11

    Logged In: YES
    user_id=1975783
    Originator: YES

    File Added: class.phpmailer.php

     
  • hjernespiser
    hjernespiser
    2008-01-11

    class.phpmailer.php goes in includes/

     
    Attachments
  • hjernespiser
    hjernespiser
    2008-01-11

    class.smtp.php goes with phpmailer in includes/

     
    Attachments
  • hjernespiser
    hjernespiser
    2008-01-11

    Logged In: YES
    user_id=1975783
    Originator: YES

    File Added: class.smtp.php

     
  • I added this patches to SVN

     
    • assigned_to: nobody --> wooc
    • status: open --> closed-accepted