def sendEmails():


    #fromaddr = raw_input('Enter email: ')
    #password = raw_input('Enter password: '******'BeatBox1'
    fromaddr = "*****@*****.**"

    #sheet_ranges = emailParse['A1:D5']
    #print [cell.value for cell in sheet_ranges]


    signature = """\
<html>
    <head></head>
    <body>
    <p><br>
        <br>
        --<br>
        <font size=5>Moving Minds Initiative</font><br>
        <i><font size=4>"Behind every face there's a story"</font></i><br>
        <a href="ymm.berkeley.edu">You Mean More</a><br>
        Joshua, Kimberly, Leah, Billal, Shellin<br>
        [email protected]<br>
        <img src="https://s32.postimg.org/araq0lgk5/MMILogo_Unofficial.png">
    </p>
  </body>
</html>"""

    for recipient in emailRecipients:
        msg = MIMEMultipart()
        msg['From'] = fromaddr
        server = smtplib.SMTP('smtp.gmail.com', 587)
        server.starttls()
        server.login(fromaddr, password)
        if len(recipient) < 4:
            recipient += ('',)
        toaddr = recipient[0]
        msg['To'] = toaddr
        msg['Subject'] = "TEST %s %s"%recipient[1:-1]

        body = """Dear %s %s,

"""%(recipient[1:-1])+ ''.join(ChangePersonal(mainmessage,recipient[3]).replace('NAME',recipient[1]+' '+recipient[2])
                               for mainmessage in mainMessages) + signing
        # FIXME need to add first name option to make even more personal
        # FIXME, please remove all PERSONAL, there should be option to remove personal...
        msg.attach(MIMEText(body, 'plain'))
        msg.attach(MIMEText(signature,'html'))
        text = msg.as_string()
        server.sendmail(fromaddr, toaddr, text)
        msg._payload = []


        server.quit()