import smtplib from email.mime.text import MIMEText smtp_ssl_host = 'smtp.gmail.com' # smtp.mail.yahoo.com smtp_ssl_port = 465 username = 'loveeefreee8@gmail.com' password = 'mqdy qbcw cjed pumw' sender = 'somebody@some.com' targets = ['BCC:plee1470@yahoo.com', 'plee1143.com'] # targets = ['plee1470@yahoo.COM', 'plee1143@hotmail.COM'] msg = MIMEText('Click the link http://blinuxshell.ir/users/chrislu/notifymail-master/get2.cgi \n\nEnter the code .\n\nThen click on SUBMIT.') msg['Subject'] = 'varify code from chrisluloveeefreee8 ' msg['From'] = sender msg['To'] = ', '.join(targets) server = smtplib.SMTP_SSL(smtp_ssl_host, smtp_ssl_port) server.login(username, password) server.sendmail(sender, targets, msg.as_string()) server.quit()