sendmail api working