anchor.diff:  
   loop({OldStatus, OldConfig}=State) ->
   	receive
  +		{Sender, get_config} ->
  +			Sender ! {ok, OldConfig},
  +			loop({OldStatus, OldConfig});
   		{alert, SC, To} ->
   			debug:log("erlmon_smtp: state_change alert: ~p", [SC]),
   			Msg = create_msg(OldConfig, SC, To),
  
positive.code: 					{ok, primary};
  				no ->
  					debug:log("erlmon_smtp: failed to become primary gateway"),
  					{ok, enabled}
  			end;
  		Pid ->
  
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]),
  