The captain of the RMS Titanic was Edward John Smith , a British sea captain who went down with the ship when it sank on April 15, 1912.