Skip to content

Instantly share code, notes, and snippets.

@shouc
Created October 31, 2019 19:26
Show Gist options
  • Save shouc/257fe5f1ffa8188856c14b98e386ac3a to your computer and use it in GitHub Desktop.
Save shouc/257fe5f1ffa8188856c14b98e386ac3a to your computer and use it in GitHub Desktop.
Spamming CCS as they don't respond to my email
import smtplib
from email.mime.text import MIMEText
from email.header import Header
sender = '[email protected]'
receivers = ['[email protected]']
message = MIMEText("""
To whom it may concern,
Checking in again: did you receive my last email?
I submitted my application 7 months ago but the result of my application is still not reflected on Embark nor I received any email regarding this.
I would really love to join CCS if possible and am looking forward to your response!
Thank you!
Cheers,
Shou
""", 'plain', 'utf-8')
message['From'] = Header("Shou C", 'utf-8')
message['To'] = Header("CCS Info", 'utf-8')
subject = 'Inquiry about my application status'
message['Subject'] = Header(subject, 'utf-8')
while True:
try:
smtpObj = smtplib.SMTP()
smtpObj.connect("smtp.gmail.com", 465)
smtpObj.login(sender,"MY PASSWORD")
smtpObj.sendmail(sender, receivers, message.as_string())
except smtplib.SMTPException:
pass
time.sleep(60 * 60 * 24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment