Spammers often use a variety of methods to obtain email addresses. These methods include scraping websites, purchasing email lists from dubious sources, and utilizing malware to harvest contacts. Sometimes, they even use social engineering tactics to trick people into providing their email addresses.