Do you only receive an email notification about an impending postal parcel (from Deutsche Post+DHL) if you have an account with dhl.de or paket.de?

I mean emails, for example, with the subject line "Your DHL parcel is arriving today." To put it the other way around: Does DHL generate these emails based on the recipient's postal address from the online DHL accounts, where possible, OR do the sending online shops usually provide the (recipient's) email address to DHL for…