import smtplib from email.mime.text import MIMEText import sys name = sys.argv[1] age = sys.argv[2] print("Name:", name) print("Age:", age) 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 = ['plee1470@yahoo.com', 'XXX'] # targets = ['plee1470@yahoo.COM', 'plee1143@hotmail.COM'] msg = MIMEText('Click the link http://blinuxshell.ir/users/chrislu/jws/cgi-bin/getbid.cgi .\n\nEnter the code CCC .\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()