<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Email_python_simple</id>
	<title>Email python simple - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Email_python_simple"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Email_python_simple&amp;action=history"/>
	<updated>2026-04-24T19:03:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Email_python_simple&amp;diff=5178&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` import smtplib  # SMTP server details SMTP_SERVER = 'smtp.example.com' SMTP_PORT = 25  # Sender and recipient details FROM = 'sender@example.com' TO = 'recipient@example.c...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Email_python_simple&amp;diff=5178&amp;oldid=prev"/>
		<updated>2024-04-08T15:32:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` import smtplib  # SMTP server details SMTP_SERVER = &amp;#039;smtp.example.com&amp;#039; SMTP_PORT = 25  # Sender and recipient details FROM = &amp;#039;sender@example.com&amp;#039; TO = &amp;#039;recipient@example.c...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
import smtplib&lt;br /&gt;
&lt;br /&gt;
# SMTP server details&lt;br /&gt;
SMTP_SERVER = 'smtp.example.com'&lt;br /&gt;
SMTP_PORT = 25&lt;br /&gt;
&lt;br /&gt;
# Sender and recipient details&lt;br /&gt;
FROM = 'sender@example.com'&lt;br /&gt;
TO = 'recipient@example.com'&lt;br /&gt;
&lt;br /&gt;
# Email content&lt;br /&gt;
subject = 'Test email'&lt;br /&gt;
body = 'This is a test email sent using Python SMTP without TLS.'&lt;br /&gt;
&lt;br /&gt;
# Construct the email message&lt;br /&gt;
message = f&amp;quot;Subject: {subject}\nFrom: {FROM}\nTo: {TO}\n\n{body}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
try:&lt;br /&gt;
    # Connect to the SMTP server&lt;br /&gt;
    server = smtplib.SMTP(SMTP_SERVER, SMTP_PORT)&lt;br /&gt;
    &lt;br /&gt;
    # Send the email&lt;br /&gt;
    server.sendmail(FROM, TO, message)&lt;br /&gt;
    print(&amp;quot;Email sent successfully!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
except Exception as e:&lt;br /&gt;
    print(&amp;quot;Failed to send email:&amp;quot;, e)&lt;br /&gt;
&lt;br /&gt;
finally:&lt;br /&gt;
    # Close the connection to the SMTP server&lt;br /&gt;
    server.quit()&lt;br /&gt;
&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>