Skip to content

Instantly share code, notes, and snippets.

@Olshansk
Created October 31, 2023 22:33
Show Gist options
  • Save Olshansk/517ae0d7b24416ede7a5cdaa8f2bd844 to your computer and use it in GitHub Desktop.
Save Olshansk/517ae0d7b24416ede7a5cdaa8f2bd844 to your computer and use it in GitHub Desktop.
# Run with `streamlit run easy_email.py` after `pip install streamlit`
# Required Libraries
import streamlit as st
# Streamlit App
def main():
st.title("EasyEmail")
# Campaign Name
st.sidebar.header("Campaign:")
st.sidebar.text_input("Your invite to listingbott")
# Account
st.sidebar.header("Account")
# Subject of the Email
st.header("Your invite to listingbott")
# Email Recipients Input
recipients = st.text_area("Email Recipients (comma-separated)", value="[email protected], [email protected], [email protected]")
# Email Message Body
email_body = """
Hey from John,
Here is your invite
https://your-invite.to/the-tool
--
best regards
"""
st.text_area("Email Message", value=email_body, height=200)
# Send Email Button
if st.button("SEND TO 2000 people now"):
st.success("Emails sent successfully!")
# Implement email sending functionality here
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment