Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Readme
Here are some of the features:
The API for Mailer.To is changed. Use a string to specify a single recipient, and an iterable to specify more than one.
You can now specify the port in Mailer ::
from mailer import Mailer sender = Mailer('smtp.example.com', port=20)
Thanks to Douglas Mayle for his patch for this.
You can now specify MIME type::
msg.attach("picture.png", mimetype="image/png")
Sending an HTML email: ::
from mailer import Mailer from mailer import Message
message = Message(From="me@example.com", To="you@example.com", charset="utf-8") message.Subject = "An HTML Email" message.Html = """This email uses HTML!""" message.Body = """This is alternate text."""
sender = Mailer('smtp.example.com') sender.send(message)
Sending an attachment: ::
from mailer import Mailer from mailer import Message
message = Message(From="me@example.com", To=["you@example.com", "him@example.com"], Subject="Cute Cat") message.Body = """Kittens with dynamite""" message.attach("kitty.jpg")
sender = Mailer('smtp.example.com') sender.send(message)
Tested with Python 2.4, 2.5, and 2.6
FAQs
A module to send email simply in Python
We found that mailer 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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.