Hi, how work sfErrorNotifierPlugin

in the README file

  * In the file /plugins/sfErrorNotifierPlugin/config/app.yml,  set
the email address(es) to deliver the notifications to, for the
environments you want to enable (tipically only 'prod').
You can comma-separate multiple recipients.

    {{{
      prod:
        sfErrorNotifier:
          emailTo:      err...@mysite.com
    }}}

and i change my /plugins/sfErrorNotifierPlugin/config/app.ym for


all:
  sfErrorNotifier:
    enabled:    true  # Global enable or disable per env
    emailTo:      u...@domain.com  # EDIT THIS
    emailFrom:       # Optional, e.g.: My Site <no-re...@mysite.com>
    emailFormat: html   # 'html' or 'txt', html by default

i change emailTo for my email but i dont understand how work, because
i dont understand how send email, where config my username / password
/ smtp ?

in the lib sfErrorNotifierMail.php

private function mailer($to, $subject, $body, $headers)
  {
    $alternativeMailer = sfConfig::get('app_sfErrorNotifier_mailerMethod');

    if (strlen($alternativeMailer))
    {
        $params = array('recipient' => $to,
                        'subject' => $subject,
                        'body' => $body,
                        'headers' => $headers);
        $func = strpos($alternativeMailer, '::') === false ?
$alternativeMailer : explode('::', $alternativeMailer) ;
        call_user_func($func, $params);
    }
    else
    {
        @mail($to, $subject, $body, $headers);
    }
  }

how i can use ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to