The ILOVEYOU virus was named for the subject line of the email it used to spread: "ILOVEYOU". The email also contained an attachment named "LOVE-LETTER-FOR-YOU.TXT.vbs" which, when opened, activated the malicious code. This deceptive approach, combined with the subject line's innocent-sounding message, was highly effective in enticing users to open the harmful file.