import smtplib
import random
# List of daily devotionals
devotionals = [
"Let all that you do be done in love. - 1 Corinthians 16:14",
"For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life. - John 3:16",
"Therefore, if anyone is in Christ, he is a new creation. The old has passed away; behold, the new has come. - 2 Corinthians 5:17",
"Beloved, let us love one another, for love is from God, and whoever loves has been born of God and knows God. - 1 John 4:7"
]
# Choose a random devotional
daily_devotional = random.choice(devotionals)
# Email configuration
smtp_server = "smtp.gmail.com"
smtp_port = 587
sender_email = "[email protected]"
sender_password = "your_email_password"
receiver_email = "[email protected]"
# Create message
message = f"""\
Subject: Daily Devotional
{daily_devotional}
"""
# Send email
with smtplib.SMTP(smtp_server, smtp_port) as server:
server.starttls()
server.login(sender_email, sender_password)
server.sendmail(sender_email, receiver_email, message)
print("Daily devotional sent!")import smtplib
import random
# List of daily devotionals
devotionals = [
"Let all that you do be done in love. - 1 Corinthians 16:14",
"For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life. - John 3:16",
"Therefore, if anyone is in Christ, he is a new creation. The old has passed away; behold, the new has come. - 2 Corinthians 5:17",
"Beloved, let us love one another, for love is from God, and whoever loves has been born of God and knows God. - 1 John 4:7",
"And We have not sent you, [O Muhammad], except as a mercy to the worlds. - Quran 21:107",
"And We have certainly made the Qur'an easy for remembrance, so is there any who will remember? - Quran 54:17",
"Indeed, Allah is with the patient. - Quran 2:153",
"And We have certainly made the Qur'an easy for remembrance, so is there any who will remember? - Quran 54:17",
"The God of the Old Testament is arguably the most unpleasant character in all fiction: jealous and proud of it; a petty, unjust, unforgiving control-freak; a vindictive, bloodthirsty ethnic cleanser; a misogynistic, homophobic, racist, infanticidal, genocidal, filicidal, pestilential, megalomaniacal, sadomasochistic, capriciously malevolent bully. - Richard Dawkins, The God Delusion, p. 31, para. 2, sentence 1",
"We are all atheists about most of the gods that societies have ever believed in. Some of us just go one god further. - Richard Dawkins, The God Delusion, p. 18, para. 1, sentence 1",
"Faith is the great cop-out, the great excuse to evade the need to think and evaluate evidence. Faith is belief in spite of, even perhaps because of, the lack of evidence. - Richard Dawkins, The God Delusion, p. 73, para. 4, sentence 1",
"I am against religion because it teaches us to be satisfied with not understanding the world. - Richard Dawkins, The God Delusion, p. 3, para. 2, sentence 1"
]
# Choose a random devotional
daily_devotional = random.choice(devotionals)
# Email configuration
smtp_server = "smtp.gmail.com"
smtp_port = 587
sender_email = "[email protected]"
sender_password = "your_email_password"
receiver_email = "[email protected]"
# Create message
message = f"""\
Subject: Daily Devotional
{daily_devotional}
"""
# Send email
with smtplib.SMTP(smtp_server, smtp_port) as server:
server.starttls()
server.login(sender_email, sender_password)
server.sendmail(sender_email, receiver_email, message)
print("Daily devotional sent!")