Python Forum

Full Version: Some help with those lines
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
import send_mail
f = open('emails.txt', 'r')
for line in f:
print line
for EMAIL in send_mail
execfile('send_mail.py')
f.close()

I want to make a loop for receiver email. Any ideas?
Something like EMAIL = line , looping all emails from the emails.txt
Re post with code tag and working indentation.