Alprostadil (also known as prostaglandin E1 [PGE1]) is the prominent known smooth-muscle dilator of the corpus cavernosum. Its mechanism of action is believed to be the promotion of intracellular accumulation of cyclic adenosine monophosphate, thereby causing decreased intracellular accumulation of calcium and resulting smooth muscle relaxation. Alprostadil can be delivered to the erectile tissue either via an intraurethral suppository that is massaged and then absorbed across the corpus spongiosum of the urethra to the corpora cavernosa, or directly injected into the corpora cavernosa. When administered urethrally, doses are substantially higher than when directly injected (typical dosing is 500 mcg to 1 mg intraurethral compared with 2.5 mcg to 20 mcg intracavernosal).
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
Although not proven, it is likely that erectile dysfunction can be prevented by good general health, paying particular attention to body weight, exercise, and cigarette smoking. For example, heart disease and diabetes are problems that can cause erectile dysfunction, and both are preventable through lifestyle changes such as sensible eating and regular exercise. Furthermore, early diagnosis and treatment of associated conditions like diabetes, hypertension and high cholesterol may prevent or delay erectile dysfunction, or stop the erectile dysfunction from getting more serious.
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.