Some help with those lines - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Some help with those lines (/thread-1637.html) |
Some help with those lines - eftemie0000 - Jan-17-2017 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: Some help with those lines - snippsat - Jan-17-2017 Re post with code tag and working indentation. |