A history of heart disease does not mean you are unable to use treatments to help you get better erections.
How ‘stable’ your heart disease is should be considered. Having sex is no more stressful to the heart than other daily things such as walking one mile on the flat in twenty minutes or playing golf!
If you use nitrates (spray or tablets) to get rid of chest pain you MUST tell the person prescribing drugs for your erectile dysfunction. It may alter the treatment they would safely suggest.