Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user_list = ['ravi.teja', 'teja.ravi', 'arun.kumar']
- email_ids = ['ravi.teja@gmail.com', 'teja.ravi@gmail.com', 'arun.kumar@gmail.com']
- for i in user_list:
- username = i
- for e in email_ids:
- em = e.split("@")[0]
- if username == em:
- send_email(i,em) """ I need to select the email based on the condition to send email only to the match i.e ravi.teja == ravi.teja send email to ravi.teja@gmail.com or teja.ravi == teja.ravi send email to teja.ravi@gmail.com
- can some one help me how to select an email_address if the firstname and the last name in the email id matches the exact string."""
Add Comment
Please, Sign In to add comment