
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
mailcomposer aims to provide a simple, cross-platform interface for composing emails through an external application like Microsoft Outlook. Some reasons you might use it are:
smtplib
.Here's how easy it is to use:
# This automatically selects an appropriate email application
from mailcomposer import MailComposer
mc = MailComposer()
# Set some message headers
mc.to = "nobody@example.com"
mc.subject = "Testing mailcomposer"
# Set the message body
mc.body = "This is a demonstration of the mailcomposer package."
# Attach this README file
mc.attach_file("README.md")
# Display the message in your email application
mc.display()
The mailcomposer module can also be called as a script from the command line. When used this way, it provides an interface similar to the Unix mail
utility. For more information, try python -m mailcomposer --help
.
Notable features include:
Supported email applications currently include:
On Unix systems, mailcomposer can also access other email applications via the xdg-email
utility from xdg-utils. However, some features like setting the body format are not supported using xdg-email
.
FAQs
API for composing emails through an external application
We found that mailcomposer 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.