Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize subject #402

Open
mkhanal opened this issue Nov 9, 2017 · 1 comment
Open

Customize subject #402

mkhanal opened this issue Nov 9, 2017 · 1 comment
Labels

Comments

@mkhanal
Copy link

mkhanal commented Nov 9, 2017

It would be handy if the subject could have some information passed so that it can be grouped/searched/managed based on subject.

Eg: An application specific support ticket is automatically created for an exception. It would be handy to be able to add that to the subject. This also helps integration with other support systems.

ExceptionNotifier.notify_exception(error, 
     :env  => request.env, 
     :subject => "Error in application #{error_support_code}" 
     :data => {:content   => content})
@EmilioCristalli
Copy link
Collaborator

@mkhanal this is kind of a hack, but I think you can specify a prefix for the subject. Something like this:

    ExceptionNotifier.notify_exception(
      error,
      env: request.env,
      email_prefix: "[#{error_support_code}] ",
      data: { content: content }
    )

If this is not enough, I guess we can add a new email_subject option to the email notifier

@FLarra FLarra added the feature label Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants