Do I need to send my airline a letter saying I'm going to travel with my ResMed CPAP machine?

This will vary between airlines.

We recommend contacting your airline at least two weeks before you plan to take to the skies. Ask to speak to their Medical Services Department so that they can approve the in-flight use of your CPAP machine. They will advise if a letter is required from your doctor.