Once a guest purchases my digital product, how do i email them their item ?

is there a way where the digital product is sent to the customer automatic? or will i have to capture the email and send it manually ?