Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions email sender.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
from email.message import EmailMessage

"""This app2 module is not standard module, it's a custom module created by the owner. You will not find it if you search in Google
you can delete this module from this code and for the exchange you type your password that you get from Google Account>Security>App passwords in email password"""
from app2 import password
import ssl
import smtplib

email_sender = ' codewithtomi@gmail.com'

#fill your email in email_sender
email_sender = 'codewithtomi@gmail.com'
"""you can type your password here with double quota/apostrophe that you got from your Google Account>Security>App passwords
if you didn't use module app2"""
email_password = password
#fill your target email in email_receiver
email_receiver = ''

#your email subject goes here
subject = "Dont forget to subscribe"

#your email message goes here
body = """
When you watch a video, please hit subscribe
"""

em = EmailMessage()
em['From'] = email_sender
em['To'] = email_receiver
em[' subject'] = subject
em['subject'] = subject
em.set_content(body)


Expand Down