anchor.diff:  					{ok, primary};
   				no ->
   					debug:log("erlmon_smtp: failed to become primary gateway"),
  +					erlang:monitor(process, global:whereis_name(erlmon_smtp)),
   					{ok, enabled}
   			end;
   		Pid ->
  
positive.code: -export([start_link/0]).
  -export([init/0]).
  -export([status/0]).
  -export([config/0]).
  -export([config/1]).
  -export([alert/2]).
  
negative.code:   end,
  	smtp_fsm:sendemail(Pid, Config#smtp_config.address, To, Msg),
  	smtp_fsm:close(Pid).
  
  get_config() ->
  	erlmon_smtp ! {self(), get_config},
  	receive
  		{ok, Config} -> Config
  	end.
  
  config() -> 
    Host = config:setting([smtp,host]),
  