how would i go about sending an email that when opened allow an attatchment to open by itself ?

i think it may be something to do with .exe command but aint at all sure