Search code examples
phpemailphabricator

How to write a custom mail adapter in phabricator?


I'm trying to write a custom mail adapter in phabricator. I wrote my own class A in this path phabricator>src>applications>metamta>adapter>A.php.

I made sure this extends PhabricatorMailImplementationAdapter and set this in my set metamta.mail-adapter .

However on building I get the following error

Usage Exception: Option 'metamta.mail-adapter' value must name a class extending 'PhabricatorMailImplementationAdapter'.    

I'm not sure what I'm doing wrong.. Any help is appreciated!


Solution

  • run arc liberate to build a new library map, so your new class can be found by Phabricator.