
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Simple SMTP wrapper for Python's SMTP, supports both HTML and text based emails. Now supports attachments!
Install simpleemail
pip install simpleemail
Then use it in a project:
from simpleemail import create_email_message, send_email
To send an email you have to first create an email message to send. Note you can use any combination of plain text or HTML when creating a message.
message = create_email_message('Hello','email@address.com','foo@bar.it','World!','<html><head></head><body><h1>World!</h1></body></html>')
send_email(message,'smtp.server.com', False)
You can also provide parameters to be replaced when the message is created.::
params = {'name': 'Rick James'}
message = create_email_message('Hello',
'email@address.com',
'anyone@foobar.com',
'[name]!',
'<html><head></head><body><h1>[name]!</h1></body></html>',
params)
This will substitute the value of Rick James in for the name.
You can also send a single attachment or multiple attachments by choosing::
message = create_email_message('Hello',
'email@address.com',
'anyone@foobar.com',
'Test body',
'<html><head></head><body><h1>Test body</h1></body></html>',
[],
"file.txt",
['file1.txt','file2.pdf'])
FAQs
Simple SMTP wrapper for Python's SMTP, supports both HTML and text based emails. Now supports attachments!
We found that simpleemail demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.