How do you iterate through each email in your inbox using python?
- by djblue2009
I'm completely new to programming and I'm trying to build an autorespoder to send a msg to a specific email address.
Using an if statement, I can check if there is an email from a certain address in the inbox and I can send an email, but if there are multiple emails from that address, how can I make a for loop to send an email for every email from that specific address.
I tried to do use this as a loop:
for M.search(None, 'From', address) in M.select():
but I get the error: "can't assign to function call" on that line