Optical spectroscopy of RX J0439.8-6809 and 1E 0035.4-7230