diff --git a/examples/README.md b/examples/README.md index e5ff5c7..2236adb 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,6 +1,3 @@ # Examples - [Recommended usage with NTP time synchronization](example.py) -- [Minimal example](minimal.py)[^warning-date] - -[^warning-date]: Warning: this will send an email with a very wrong date if the time was not synchronized on the device. diff --git a/examples/example.py b/examples/example.py index ee98508..fc15eb1 100644 --- a/examples/example.py +++ b/examples/example.py @@ -31,7 +31,6 @@ client.headers( # Write message content client.write_line("Hello world!\n") client.write_line("Ceci est un message très intéressant.\n") -client.write_line("...\n") # Send message client.send() diff --git a/examples/minimal.py b/examples/minimal.py deleted file mode 100644 index 37431af..0000000 --- a/examples/minimal.py +++ /dev/null @@ -1,25 +0,0 @@ -from micromail import MicromailClient - -# Create an SMTP client -client = MicromailClient( - host="mail.example.com", - port=465, - ssl=True, -) - -# Connect to the server -client.connect() -# Login to the server -client.login("example@example.com", "password") -# Initialize a new message -client.new_message("example@example.org") -# Set message headers -# WARNING: This will send a message with a very wrong date if time is not correct on the device -# --- It might be rejected by the mail server -client.headers() -# Write message content -client.write_line("Hello world!\n") -# Send message -client.send() - -client.quit()