A 68-year-old woman with a history of ischaemic heart disease presents with acute shortness of breath and pink frothy sputum. On examination she is tachycardic, hypertensive and has bilateral basal crackles. What is the most appropriate immediate pharmacological management?