send mail and move stuff to config