If I were implementing something like this, it would just be a link to an auto-expiring viewer page, if you opened the email in a third-party email client.
And according to Google, that's exactly how it's implemented:
https://support.google.com/mail/answer/7674059
"Malicious programs" here most likely refers to things like keyloggers.