function [ error ] = SendDataToODSS(path,filename)

LatAnchor = 36.7442;
LonAnchor = -121.8830;

load([path filename '_raw.mat']);

setpref('Internet','E_mail','hamilton@mbari.org');
setpref('Internet','SMTP_Server','mbarimail.mbari.org');

platform_name = ['WEC'];
epoch_seconds  = round(posixtime(datetime(XB_Time(end),'ConvertFrom','datenum')));

longitude = XB_Lon(end);
latitude = XB_Lat(end);

if((latitude < LatAnchor+1) && (latitude > LatAnchor-1) && (longitude > LonAnchor-1) && (longitude < LonAnchor+1))
  sendmail('mooringtrack@mbari.org',[platform_name ',' num2str(epoch_seconds) ',' num2str(longitude) ',' num2str(latitude)]);
else
  sendmail('jandrewhamilton@gmail.com',[platform_name ',' num2str(epoch_seconds) ',' num2str(longitude) ',' num2str(latitude)]);
end 

error = 0;
end 
