Ignore:
Timestamp:
Nov 6, 2013, 6:57:53 PM (10 years ago)
Author:
mistic100
Message:

feature 2995: New email template
restore get_l10n_args removed at r25357
apply changes to NBM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/notification_by_mail.php

    r25018 r25360  
    306306            if ($exist_data)
    307307            {
    308               $subject = '['.$conf['gallery_title'].']: '.l10n('New photos added');
     308              $subject = '['.$conf['gallery_title'].'] '.l10n('New photos added');
    309309
    310310              // Assign current var for nbm mail
     
    378378                )
    379379              );
    380 
    381               if (pwg_mail
    382                   (
    383                     format_email(stripslashes($nbm_user['username']), $nbm_user['mail_address']),
    384                     array
    385                     (
    386                       'from' => $env_nbm['send_as_mail_formated'],
    387                       'subject' => $subject,
    388                       'email_format' => $env_nbm['email_format'],
    389                       'content' => $env_nbm['mail_template']->parse('notification_by_mail', true),
    390                       'content_format' => $env_nbm['email_format'],
    391                       'theme' => $nbm_user['theme']
    392                     )
    393                   ))
     380             
     381              $ret = pwg_mail(
     382                array(
     383                  'name' => stripslashes($nbm_user['username']),
     384                  'email' => $nbm_user['mail_address'],
     385                  ),
     386                array(
     387                  'from' => $env_nbm['send_as_mail_formated'],
     388                  'subject' => $subject,
     389                  'email_format' => $env_nbm['email_format'],
     390                  'content' => $env_nbm['mail_template']->parse('notification_by_mail', true),
     391                  'content_format' => $env_nbm['email_format'],
     392                  )
     393                );
     394
     395              if ($ret)
    394396              {
    395397                inc_mail_sent_success($nbm_user);
Note: See TracChangeset for help on using the changeset viewer.