Ignore:
Timestamp:
Feb 13, 2007, 12:21:23 AM (17 years ago)
Author:
rub
Message:

When not template are selected for mail, PWG uses default template..

Sent multi-part message in MIME format. (With only one part for the moment).

Improvement pwg_mail function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r1806 r1809  
    274274
    275275          // set env nbm user
    276           set_user_on_env_nbm($nbm_user['user_id'], $is_action_send);
     276          set_user_on_env_nbm($nbm_user, $is_action_send);
    277277
    278278          if ($is_action_send)
     
    378378              );
    379379
    380               if (pwg_mail(
     380              if (pwg_mail
     381                  (
    381382                    format_email($nbm_user['username'], $nbm_user['mail_address']),
    382                     $env_nbm['send_as_mail_formated'],
    383                     $subject,
    384                     $env_nbm['mail_template']->parse('notification_by_mail', true),
    385                     $env_nbm['email_format'], $env_nbm['email_format']
    386                     ))
     383                    array
     384                    (
     385                      'from' => $env_nbm['send_as_mail_formated'],
     386                      'subject' => $subject,
     387                      'email_format' => $env_nbm['email_format'],
     388                      'content' => $env_nbm['mail_template']->parse('notification_by_mail', true),
     389                      'content_format' => $env_nbm['email_format'],
     390                      'template' => $nbm_user['template'],
     391                      'theme' => $nbm_user['theme']
     392                    )
     393                  ))
    387394              {
    388395                inc_mail_sent_success($nbm_user);
Note: See TracChangeset for help on using the changeset viewer.