Compare commits

..

No commits in common. "4b7268d4ebac9e81589565fb176edab5d11a7e8b" and "fb778c325a2cf87c8a3e3390b0bfec9e5ce6bd79" have entirely different histories.

3 changed files with 0 additions and 29 deletions

View file

@ -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.

View file

@ -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()

View file

@ -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()