Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some help with those lines
#1
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
Reply
#2
Re post with code tag and working indentation.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 5,707 Aug-10-2020, 11:01 PM
Last Post: medatib531

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020