Skip to content

OpenDKIM.new()

Christopher Mooney edited this page Apr 3, 2017 · 1 revision

DESCRIPTION

Create a new instantiation of the DKIM service, for signing or verifying messages. This is called when setting up the application.

ARGUMENTS

Type: undefined

RETURN VALUES

  • On failure, an exception is thrown that indicates the cause of the problem.

NOTES

  • Under the hood, a handle is stored for use with this object instance. The handle stored by this function is passed to opendkim.sign() and opendkim.verify().

EXAMPLE

try {
  var opendkim = new OpenDKIM();
} catch (err) {
  console.log(err);
}